[Pkg-mozext-commits] [itsalltext] 335/459: Cleaned up and fixed tests.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit cd6bc18a011efe95dcd9700b6d5e09860e914630
Author: Christian Höltje <docwhat at gmail.com>
Date:   Fri Oct 24 10:52:56 2008 -0400

    Cleaned up and fixed tests.
---
 tests/basic.html       |  4 +++-
 tests/basic.xhtml      | 10 ----------
 tests/hidden.html      | 15 +++++++--------
 tests/preferences.html | 13 +++++++------
 tests/setup.html       |  8 ++------
 5 files changed, 19 insertions(+), 31 deletions(-)

diff --git a/tests/basic.html b/tests/basic.html
index f5ec980..9ec33ee 100644
--- a/tests/basic.html
+++ b/tests/basic.html
@@ -12,7 +12,9 @@
     <div class="back"><a href=".">back</a></div>
 
     <p>
-      Purpose: to verify IAT! works with HTML.
+      Purpose: to verify IAT! works with HTML.  This test will
+      alternate between testing right-clicking the edit button and
+      right-clicking the textarea (for the context menu).
     </p>
 
     <form action="" method="get">
diff --git a/tests/basic.xhtml b/tests/basic.xhtml
index 0a3eb87..27465a4 100644
--- a/tests/basic.xhtml
+++ b/tests/basic.xhtml
@@ -31,18 +31,8 @@
         Click on the edit button.  Your editor should open and should contain the text from the textarea.  Add the phrase “test 1” in your editor and save and exit.  The textarea should be updated within a few seconds.
       </li>
       <li>
-        Right click on the edit button.  Select the menu item <tt>.txt</tt>.  Your editor should open and should contain the text from the textarea.  Add the phrase “test 2” in your editor and save and exit.  The textarea should be updated within a few seconds.
-      </li>
-      <li>
         Right click on the textarea.  Select the menu item <tt>It's All Text!</tt> → <tt>.txt</tt>.  Your editor should open and should contain the text from the textarea.  Add the phrase “test 3” in your editor and save and exit.  The textarea should be updated within a few seconds.
       </li>
-
-      <li>
-        Right click on the edit button.  Select the menu item <tt>Preferences</tt>. The preferences should open.  Close them.
-      </li>
-      <li>
-        Right click on the textarea.  Select the menu item <tt>It's All Text!</tt> → <tt>Preferences</tt>. The preferences should open.  Close them.
-      </li>
     </ol>
 
     <div class="back"><a href=".">back</a></div>
diff --git a/tests/hidden.html b/tests/hidden.html
index b2d7119..ca9ed13 100644
--- a/tests/hidden.html
+++ b/tests/hidden.html
@@ -110,16 +110,15 @@
         </li>
 
         <li>
-          Click on the button to toggle the hiddeness/visibility of
-          the textareas.  The edit button should appear within a few
-          seconds.  Click the toggle button again, and the edit
-          buttons should disappear in a few seconds.  Moving the
-          cursor over a textarea will make the edit button appear
-          quicker.
-          <br>
-            <button onclick="return toggle(this, event);">Toggle</button>
+          Click the toggle button to reveal the textareas.
         </li>
+        <li> Mouse over the textareas.  The edit button should appear. </li>
+        <li> Click the toggle button to hide the textareas.</li>
+        <li> Mouse around to verify that the edit button isn't shown.</li>
       </ol>
+      <p>
+        <button onclick="return toggle(this, event);">Toggle</button>
+      </p>
     </form>
 
     <div class="back"><a href=".">back</a></div>
diff --git a/tests/preferences.html b/tests/preferences.html
index fbfdd49..f6acbef 100644
--- a/tests/preferences.html
+++ b/tests/preferences.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
 <html>
   <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-    <title>Setup Tests</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <title>Preferences Tests</title>
     <link rel="stylesheet" href="style.css" type="text/css">
   </head>
 
@@ -27,11 +27,12 @@
         Go to the menu <tt>Tools -> It's All Text! -> Preferences</tt>
       </li>
       <li>
-        For each of the <tt>Edit button position</tt>s including disable:
+        Leaving the preferences pane open (if possible on your OS) do
+        the following for each of the settings for <tt>Edit button position</tt>s including disable:
         <ol>
-          <li>Select the setting in the preferences.</li>
-          <li>Mouse over the textare.  The edit button should disappear or 
-          move to it's new spot.
+          <li>Select the setting.</li>
+          <li>Mouse over the textarea.  You should see the edit button
+          in the correct place (or nowhere in the case of 'disable').
           </li>
         </ol>
       </li>
diff --git a/tests/setup.html b/tests/setup.html
index 9657e0f..b39bb48 100644
--- a/tests/setup.html
+++ b/tests/setup.html
@@ -24,14 +24,10 @@
     
     <ol>
       <li>
-        When you first installed IAT! you should have gotten a new
-        tab or window describing IAT!
+        When you mouse over the textarea an edit button should appear.
       </li>
       <li>
-        There should be an edit button next to the textarea.
-      </li>
-      <li>
-        If you right click on the textarea, there should be a context
+        If you right click on the textarea there should be a context
         menu item saying "It's All Text!"
       </li>
       <li>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list