]> source.dussan.org Git - jquery.git/commitdiff
Added assertions for #750
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 3 Jan 2007 16:03:16 +0000 (16:03 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 3 Jan 2007 16:03:16 +0000 (16:03 +0000)
src/selector/selectorTest.js

index 617161457671a97ba9de084d3b21545d9ec24c9e..422f84a4f9082ab738dc8365ebab8b3c0abf2edf 100644 (file)
@@ -1,12 +1,14 @@
 module("selector");\r
 \r
 test("expressions - element", function() {\r
-       expect(5);\r
+       expect(7);\r
        ok( $("*").size() >= 30, "Select all" );\r
        t( "Element Selector", "div", ["main","foo"] );\r
        t( "Element Selector", "body", ["body"] );\r
        t( "Element Selector", "html", ["html"] );\r
        t( "Parent Element", "div div", ["foo"] );\r
+       t( "Object/Param element", "#object param", ["param1", "param2"] );\r
+       ok( $("param", $("#object")[0]).length == 2, "Object/param as context" );\r
 });\r
 \r
 test("expressions - id", function() {\r
@@ -23,6 +25,7 @@ test("expressions - id", function() {
        t( "All Children of ID with no children", "#firstUL/*", []  );\r
 });\r
 \r
+\r
 test("expressions - class", function() {\r
        expect(4);\r
        t( "Class Selector", ".blog", ["mark","simon"] );\r