Bug Tracker

Changeset 4209

Show
Ignore:
Timestamp:
12/17/07 19:01:25 (1 year ago)
Author:
joern.zaefferer
Message:

test for #2070

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/test/unit/core.js

    r4206 r4209  
    10591059 
    10601060test("not()", function() { 
    1061     expect(7); 
     1061    expect(8); 
    10621062    ok( $("#main > p#ap > a").not("#google").length == 2, "not('selector')" ); 
    10631063    ok( $("#main > p#ap > a").not(document.getElementById("google")).length == 2, "not(DOMElement)" ); 
     
    10671067    ok( $("p").not(document.getElementsByTagName("p")).length == 0, "not(Array-like DOM collection)" ); 
    10681068    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"); 
    10691072}); 
    10701073