Changeset 4209
- Timestamp:
- 12/17/07 19:01:25 (1 year ago)
- Files:
-
- 1 modified
-
trunk/jquery/test/unit/core.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/test/unit/core.js
r4206 r4209 1059 1059 1060 1060 test("not()", function() { 1061 expect( 7);1061 expect(8); 1062 1062 ok( $("#main > p#ap > a").not("#google").length == 2, "not('selector')" ); 1063 1063 ok( $("#main > p#ap > a").not(document.getElementById("google")).length == 2, "not(DOMElement)" ); … … 1067 1067 ok( $("p").not(document.getElementsByTagName("p")).length == 0, "not(Array-like DOM collection)" ); 1068 1068 isSet( $("#form option").not("option.emptyopt:contains('Nothing'),[selected],[value='1']").get(), q("option1c", "option1d", "option2c", "option3d" ), "not('complex selector')"); 1069 1070 var selects = $("#form select"); 1071 isSet( selects.not( selects[1] ), ["select1", "select3"], "filter out DOM element"); 1069 1072 }); 1070 1073
