Skip to content
Permalink
Browse files

Added explicit module names to the new unit tests.

  • Loading branch information
jeresig committed Apr 20, 2009
1 parent 2764127 commit 4130319e97b1c591d394b73961b6772559cd0549
Showing with 11 additions and 3 deletions.
  1. +3 −1 test/unit/attributes.js
  2. +3 −1 test/unit/css.js
  3. +2 −0 test/unit/manipulation.js
  4. +3 −1 test/unit/traversing.js
@@ -1,3 +1,5 @@
module("attributes");

test("attr(String)", function() {
expect(27);
equals( jQuery('#text1').attr('value'), "Test", 'Check for value attribute' );
@@ -316,4 +318,4 @@ test("jQuery.className", function() {
equals( x.className, "hi bar", "Check removal of one class" );
ok( c.has(x, "hi"), "Check has1" );
ok( c.has(x, "bar"), "Check has2" );
});
});
@@ -1,3 +1,5 @@
module("css");

test("css(String|Hash)", function() {
expect(19);

@@ -79,4 +81,4 @@ test("jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", funct
ok( ! jQuery(":radio:last", $checkedtest).attr("checked"), "Check last radio still NOT checked." );
ok( !! jQuery(":checkbox:first", $checkedtest).attr("checked"), "Check first checkbox still checked." );
ok( ! jQuery(":checkbox:last", $checkedtest).attr("checked"), "Check last checkbox still NOT checked." );
});
});
@@ -1,3 +1,5 @@
module("manipulation");

test("text()", function() {
expect(1);
var expected = "This link has class=\"blog\": Simon Willison's Weblog";
@@ -1,3 +1,5 @@
module("traversing");

test("end()", function() {
expect(3);
equals( 'Yahoo', jQuery('#yahoo').parent().end().text(), 'Check for end' );
@@ -243,4 +245,4 @@ test("contents()", function() {
var c = jQuery("#nonnodes").contents().contents();
equals( c.length, 1, "Check node,textnode,comment contents is just one" );
equals( c[0].nodeValue, "hi", "Check node,textnode,comment contents is just the one from span" );
});
});

0 comments on commit 4130319

Please sign in to comment.
You can’t perform that action at this time.