more cleanups
This commit is contained in:
parent
c8ce6f447b
commit
30028e919f
@ -1,3 +1,11 @@
|
||||
<?php
|
||||
|
||||
$sample_transcript = array();
|
||||
$sample_transcript[] = '[scene-heading]Ext. The Old Man\'s House[/scene-heading]';
|
||||
$sample_transcript[] = '[scene-action]John is walking down to the car parked in the driveway.[/scene-action]';
|
||||
$sample_transcript[] = '[dialog name="John" direction="(towards the house)"]Hey, where are the keys?[/dialog]';
|
||||
|
||||
?>
|
||||
<?php if (current_user_can('submit_transcriptions')) { ?>
|
||||
<h3><?php _e('Shortcodes Info', 'what-did-they-say') ?></h3>
|
||||
|
||||
@ -6,20 +14,10 @@
|
||||
</p>
|
||||
|
||||
<h4><?php _e('Sample Transcript', 'what-did-they-say') ?></h4>
|
||||
<pre>
|
||||
[scene-heading]Ext. The Old Man's House[/scene-heading]
|
||||
[scene-action]John is walking down to the car parked in the driveway.[/scene-action]
|
||||
[dialog name="John" direction="(towards the house)"]Hey, where are the keys?[/dialog]
|
||||
</pre>
|
||||
<pre><?php echo implode("\n", $sample_transcript) ?></pre>
|
||||
|
||||
<div class="transcript">
|
||||
<div class="scene-heading">Ext. The Old Man's House</div>
|
||||
<div class="scene-action">John is walking down to the car parked in the driveway.</div>
|
||||
<div class="dialog">
|
||||
<span class="name">John</span>
|
||||
<span class="direction">(towards the house)</span>
|
||||
<span class="speech">Hey, where are the keys?</span>
|
||||
</div>
|
||||
<div class="wdts-transcript">
|
||||
<?php echo do_shortcode(implode("\n", $sample_transcript)) ?>
|
||||
</div>
|
||||
|
||||
<h4><?php _e('Shortcode Details', 'what-did-they-say') ?></h4>
|
||||
|
@ -77,6 +77,8 @@ short codes into your transcripts.
|
||||
== Screenshots ==
|
||||
|
||||
1. The **What Did They Say?!?** admin screen, with tabs running across the top.
|
||||
2. The Manage Transcripts meta box, including the short codes buttons.
|
||||
3. The Language management screen.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
|
BIN
screenshot-2.png
Normal file
BIN
screenshot-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
screenshot-3.png
Normal file
BIN
screenshot-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
@ -1,116 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="selenium.base" href="http://comicpress.local/" />
|
||||
<title>TestWhatDidTheySay</title>
|
||||
</head>
|
||||
<body>
|
||||
<table cellpadding="1" cellspacing="1" border="1">
|
||||
<thead>
|
||||
<tr><td rowspan="1" colspan="3">TestWhatDidTheySay</td></tr>
|
||||
</thead><tbody>
|
||||
<!--Meta Box-->
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>link=Add New</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>title</td>
|
||||
<td>WDTS Test Post</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>publish</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertTextPresent</td>
|
||||
<td>Post published.</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>storeValue</td>
|
||||
<td>post_ID</td>
|
||||
<td>post_id</td>
|
||||
</tr>
|
||||
<!--Edit Two Transcriptions-->
|
||||
<tr>
|
||||
<td>assertSelectedLabel</td>
|
||||
<td>wdts-language</td>
|
||||
<td>English</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>wdts-transcripts-en</td>
|
||||
<td>This is a test transcript.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>select</td>
|
||||
<td>wdts-language</td>
|
||||
<td>label=German</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>wdts-transcripts-de</td>
|
||||
<td>Dies ist ein Test transcript.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>publish</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertTextPresent</td>
|
||||
<td>Post updated.</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertValue</td>
|
||||
<td>wdts-transcripts-en</td>
|
||||
<td>This is a test transcript.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertValue</td>
|
||||
<td>wdts-transcripts-de</td>
|
||||
<td>Dies ist ein Test transcript.</td>
|
||||
</tr>
|
||||
<!--Delete post-->
|
||||
<tr>
|
||||
<td>click</td>
|
||||
<td>link=Delete</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertConfirmation</td>
|
||||
<td>You are about to delete this post 'WDTS Test Post'<br /> 'Cancel' to stop, 'OK' to delete.</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>waitForPageToLoad</td>
|
||||
<td>30000</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<!--Deactivate Plugin-->
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>link=Installed</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>//a[contains(@href,'what-did-they-say') and contains(@href,'deactivate')]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertTextPresent</td>
|
||||
<td>Plugin deactivated.</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
</tbody></table>
|
||||
</body>
|
||||
</html>
|
187
test/selenium/TestStyleChanges.html
Normal file
187
test/selenium/TestStyleChanges.html
Normal file
@ -0,0 +1,187 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="selenium.base" href="" />
|
||||
<title>TestStyleChanges</title>
|
||||
</head>
|
||||
<body>
|
||||
<table cellpadding="1" cellspacing="1" border="1">
|
||||
<thead>
|
||||
<tr><td rowspan="1" colspan="3">TestStyleChanges</td></tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>link=exact:What Did They Say?!?</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>click</td>
|
||||
<td>wdts-tab-default-styles</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>uncheck</td>
|
||||
<td>wdts[transcript_effects]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>uncheck</td>
|
||||
<td>wdts[load_default_styles]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>uncheck</td>
|
||||
<td>wdts[use_nl2br]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>uncheck</td>
|
||||
<td>wdts[allow_html]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>uncheck</td>
|
||||
<td>wdts[hide_transcript][home]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>uncheck</td>
|
||||
<td>wdts[hide_transcript][single]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>wdts[excerpt_distance]</td>
|
||||
<td>20</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>//input[@value='Change default styles']</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertTextPresent</td>
|
||||
<td>Default styles option updated.</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertNotChecked</td>
|
||||
<td>wdts[transcript_effects]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertNotChecked</td>
|
||||
<td>wdts[load_default_styles]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertNotChecked</td>
|
||||
<td>wdts[use_nl2br]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertNotChecked</td>
|
||||
<td>wdts[allow_html]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertNotChecked</td>
|
||||
<td>wdts[hide_transcript][home]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertNotChecked</td>
|
||||
<td>wdts[hide_transcript][single]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertValue</td>
|
||||
<td>wdts[excerpt_distance]</td>
|
||||
<td>20</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>check</td>
|
||||
<td>wdts[transcript_effects]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>check</td>
|
||||
<td>wdts[load_default_styles]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>check</td>
|
||||
<td>wdts[use_nl2br]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>check</td>
|
||||
<td>wdts[allow_html]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>check</td>
|
||||
<td>wdts[hide_transcript][home]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>check</td>
|
||||
<td>wdts[hide_transcript][single]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>wdts[excerpt_distance]</td>
|
||||
<td>30</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clickAndWait</td>
|
||||
<td>//input[@value='Change default styles']</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertTextPresent</td>
|
||||
<td>Default styles option updated.</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertChecked</td>
|
||||
<td>wdts[transcript_effects]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertChecked</td>
|
||||
<td>wdts[load_default_styles]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertChecked</td>
|
||||
<td>wdts[use_nl2br]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertChecked</td>
|
||||
<td>wdts[allow_html]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertChecked</td>
|
||||
<td>wdts[hide_transcript][home]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertChecked</td>
|
||||
<td>wdts[hide_transcript][single]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>assertValue</td>
|
||||
<td>wdts[excerpt_distance]</td>
|
||||
<td>30</td>
|
||||
</tr>
|
||||
|
||||
</tbody></table>
|
||||
</body>
|
||||
</html>
|
@ -20,6 +20,8 @@
|
||||
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
|
||||
<tr><td><a href="TestRenameLanguage.html">TestRenameLanguage</a></td></tr>
|
||||
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
|
||||
<tr><td><a href="TestStyleChanges.html">TestStyleChanges</a></td></tr>
|
||||
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
|
||||
<tr><td><a href="TestCreatePost.html">TestCreatePost</a></td></tr>
|
||||
<tr><td><a href="TestMetaboxApprovedTranscriptEditing.html">TestMetaboxApprovedTranscriptEditing</a></td></tr>
|
||||
<tr><td><a href="TestDeletePost.html">TestDeletePost</a></td></tr>
|
||||
|
Loading…
Reference in New Issue
Block a user