aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-01-03 16:03:16 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-01-03 16:03:16 +0000
commit02483b4a593fb5ae9bb3925f6fe9641e31e2828e (patch)
treed49d485e18903bf0807f9001bae136f8689169ec /src
parent865706d2fe6c13066e5097561e39ad1d48adfb9a (diff)
downloadjquery-02483b4a593fb5ae9bb3925f6fe9641e31e2828e.tar.gz
jquery-02483b4a593fb5ae9bb3925f6fe9641e31e2828e.zip
Added assertions for #750
Diffstat (limited to 'src')
-rw-r--r--src/selector/selectorTest.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js
index 617161457..422f84a4f 100644
--- a/src/selector/selectorTest.js
+++ b/src/selector/selectorTest.js
@@ -1,12 +1,14 @@
module("selector");
test("expressions - element", function() {
- expect(5);
+ expect(7);
ok( $("*").size() >= 30, "Select all" );
t( "Element Selector", "div", ["main","foo"] );
t( "Element Selector", "body", ["body"] );
t( "Element Selector", "html", ["html"] );
t( "Parent Element", "div div", ["foo"] );
+ t( "Object/Param element", "#object param", ["param1", "param2"] );
+ ok( $("param", $("#object")[0]).length == 2, "Object/param as context" );
});
test("expressions - id", function() {
@@ -23,6 +25,7 @@ test("expressions - id", function() {
t( "All Children of ID with no children", "#firstUL/*", [] );
});
+
test("expressions - class", function() {
expect(4);
t( "Class Selector", ".blog", ["mark","simon"] );