aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-04-20 17:05:18 +0000
committerJohn Resig <jeresig@gmail.com>2009-04-20 17:05:18 +0000
commit4130319e97b1c591d394b73961b6772559cd0549 (patch)
treef6f5527b81e85a94f6c38ecae78df0e2c860c88a
parent2764127335126601b90aac6488ef927dce1eceda (diff)
downloadjquery-4130319e97b1c591d394b73961b6772559cd0549.tar.gz
jquery-4130319e97b1c591d394b73961b6772559cd0549.zip
Added explicit module names to the new unit tests.
-rw-r--r--test/unit/attributes.js4
-rw-r--r--test/unit/css.js4
-rw-r--r--test/unit/manipulation.js2
-rw-r--r--test/unit/traversing.js4
4 files changed, 11 insertions, 3 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 144cf470b..67dce1efa 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.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" );
-}); \ No newline at end of file
+});
diff --git a/test/unit/css.js b/test/unit/css.js
index 97e529f00..af1983cc1 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -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." );
-}); \ No newline at end of file
+});
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 0327f93b2..1755ae475 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -1,3 +1,5 @@
+module("manipulation");
+
test("text()", function() {
expect(1);
var expected = "This link has class=\"blog\": Simon Willison's Weblog";
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 8abb73751..bbadf52d2 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -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" );
-}); \ No newline at end of file
+});