[Pkg-mozext-commits] [itsalltext] 213/459: added hidden tests

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:23 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 1ea5d1cb6056b862a52617c6c00e186a70dc5880
Author: Christian Höltje <docwhat at gerf.org>
Date:   Tue May 8 09:00:00 2007 -0400

    added hidden tests
---
 tests/extended.html |  6 -----
 tests/hidden.html   | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/index.html    |  1 +
 tests/style.css     |  1 +
 4 files changed, 67 insertions(+), 6 deletions(-)

diff --git a/tests/extended.html b/tests/extended.html
index b2485a9..33fcf22 100644
--- a/tests/extended.html
+++ b/tests/extended.html
@@ -14,12 +14,6 @@
     </p>
 
 
-      <p>
-        Use this textarea for the tests below:
-        <textarea>testing area</textarea>
-      </p>
-    </form>
-    
     <form action="" method="get">
       <ol>
         <li>
diff --git a/tests/hidden.html b/tests/hidden.html
new file mode 100644
index 0000000..1693377
--- /dev/null
+++ b/tests/hidden.html
@@ -0,0 +1,65 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <title>Hidden Textareas</title>
+    <link rel="stylesheet" href="style.css" type="text/css">
+    <script type="text/javascript">
+     function toggle(that, event) {
+       var dis = document.getElementById('dis');
+       var vis = document.getElementById('vis');
+       if(dis.style.display == 'none') {
+         dis.style.display = '';
+       } else { 
+         dis.style.display = 'none';
+       }
+       if(vis.style.visibility == 'hidden') {
+         vis.style.visibility = '';
+       } else { 
+         vis.style.visibility = 'hidden';
+       }
+       return false;
+     }
+    </script>
+  </head>
+
+  <body>
+    <h1>Hidden Textareas</h1>
+
+    <p>
+      Purpose: to verify that the edit button does not show up for hidden textareas.
+    </p>
+
+
+    <form action="" method="get">
+      <ol>
+        <li>
+          In the boxed area below, there should <em>not</em> be a button or a textarea visible.
+          <br>
+            <div class="boxed">
+               <textarea id="dis" style="display: none;">display: none</textarea>
+            </div>
+        </li>
+        <li>
+          In the boxed area below, there should <em>not</em> be a button or a textarea visible.
+          <br>
+            <div class="boxed">
+              <textarea id="vis" style="visibility: hidden;">visibility: hidden</textarea>
+            </div>
+        </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>
+        </li>
+      </ol>
+    </form>
+
+  </body>
+</html>
+
diff --git a/tests/index.html b/tests/index.html
index c0a210d..d68ee50 100644
--- a/tests/index.html
+++ b/tests/index.html
@@ -18,6 +18,7 @@
       <li><a href="basic.html">Basic HTML</a></li>
       <li><a href="basic.xhtml">Basic XHTML</a></li>
       <li><a href="extended.html">Extended Attributes</a></li>
+      <li><a href="hidden.html">Hidden Textareas</a></li>
     </ol>
 
     <hr>
diff --git a/tests/style.css b/tests/style.css
index b51c1a8..c8e62a6 100644
--- a/tests/style.css
+++ b/tests/style.css
@@ -11,3 +11,4 @@ tt { color: #080; font-weight: bold; font-size: 1.2em; }
 
 ol li, ul li, p { line-height: 1.2em; margin: 0.4em; }
 
+.boxed { border: 1px solid #228; }

-- 
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