[Pkg-mozext-commits] [itsalltext] 215/459: Cleaned up test cases.

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 089f8b528218916e47a6cb5b7577b14dd6843fc3
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Wed May 9 14:30:03 2007 -0400

    Cleaned up test cases.
---
 tests/hidden.html | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/tests/hidden.html b/tests/hidden.html
index 7cec535..4b9bc07 100644
--- a/tests/hidden.html
+++ b/tests/hidden.html
@@ -7,8 +7,9 @@
     <script type="text/javascript">
      function toggle(that, event) {
        var dis = document.getElementById('dis');
-       var dis2 = document.getElementById('dis2');
        var vis = document.getElementById('vis');
+
+       var dis2 = document.getElementById('dis2');
        var vis2 = document.getElementById('vis2');
 
        if(dis.style.display == 'none') {
@@ -16,20 +17,20 @@
        } else { 
          dis.style.display = 'none';
        }
-       if(dis2.style.display == 'none') {
-         dis2.style.display = '';
-       } else { 
-         dis2.style.display = 'none';
-       }
        if(vis.style.visibility == 'hidden') {
          vis.style.visibility = '';
        } else { 
          vis.style.visibility = 'hidden';
        }
-       if(vis2.style.visibility == 'hidden') {
-         vis2.style.visibility = '';
+       if(dis2.className == 'nodis') {
+           dis2.className = '';
+       } else { 
+           dis2.className = 'nodis';
+       }
+       if(vis2.className == 'novis') {
+           vis2.className = '';
        } else { 
-         vis2.style.visibility = 'hidden';
+           vis2.className = 'novis';
        }
        return false;
      }

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