Created
May 2, 2011 20:40
-
-
Save andymckay/952317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/media/js/zamboni/tests/files_tests.js b/media/js/zamboni/tests/files_tests.js | |
index 41a08ec..4da14ee 100644 | |
--- a/media/js/zamboni/tests/files_tests.js | |
+++ b/media/js/zamboni/tests/files_tests.js | |
@@ -17,9 +17,9 @@ $(document).ready(function(){ | |
var viewer = bind_viewer(nodes); | |
viewer.toggle_leaf(this.sandbox.find('a.directory')); | |
equal(this.sandbox.find('a.directory').hasClass('open'), true); | |
- equal(this.sandbox.find('ul').hasClass('hidden'), false); | |
+ equal(this.sandbox.find('ul:hidden').length, 0); | |
viewer.toggle_leaf(this.sandbox.find('a.directory')); | |
equal(this.sandbox.find('a.directory').hasClass('open'), false); | |
- equal(this.sandbox.find('ul').hasClass('hidden'), true); | |
+ equal(this.sandbox.find('ul:hidden').length, 1); | |
}); | |
}); | |
diff --git a/templates/qunit.html b/templates/qunit.html | |
index 46bda2a..771459f 100644 | |
--- a/templates/qunit.html | |
+++ b/templates/qunit.html | |
@@ -264,7 +264,7 @@ | |
<li> | |
<a class="directory closed" href="">foo</a> | |
</li> | |
- <ul class="hidden"> | |
+ <ul class="js-hidden"> | |
<li> | |
<a class="file" href="someurl">foo/bar.txt</a> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment