X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=9be93832088aeca52d23c0f81de6019b9b813401;hb=21dde30348fe9bcbd8db8c1b30e470a9e2f39c16;hp=715823a6f3563bf6a9ab06d290f56798a71d7b86;hpb=782b4af76ec080aad93d5c4a15fbc805f3e5960e;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 715823a..9be9383 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -134,12 +134,14 @@ test("class", function() { }); test("name", function() { - expect(7); + expect(9); t( "Name selector", "input[name=action]", ["text1"] ); t( "Name selector with single quotes", "input[name='action']", ["text1"] ); t( "Name selector with double quotes", 'input[name="action"]', ["text1"] ); + t( "Name selector non-input", "[name=test]", ["length", "fx-queue"] ); + t( "Name selector non-input", "[name=div]", ["fadein"] ); t( "Name selector non-input", "*[name=iframe]", ["iframe"] ); t( "Name selector for grouped input", "input[name='types[]']", ["types_all", "types_anime", "types_movie"] )