]> source.dussan.org Git - jquery.git/commitdiff
Fixed an issue with how broken selector tests were handled in IE (the exception was...
authorJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 20:43:58 +0000 (20:43 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 20:43:58 +0000 (20:43 +0000)
test/unit/selector.js

index c49b76cacf91961e03f4c7d0d46d49f1e9eea557..183bacb6b80d2023604da0cd08dc8127deec5b53 100644 (file)
@@ -33,13 +33,13 @@ test("broken", function() {
        expect(7);
        function broken(name, selector) {
                try {
-                       t( name, selector, [] );
+                       jQuery(selector);
                } catch(e){
                        ok(  typeof e === "string" && e.indexOf("Syntax error") >= 0,
                                name + ": " + selector );
                }
        }
-       
+
        broken( "Broken Selector", "[", [] );
        broken( "Broken Selector", "(", [] );
        broken( "Broken Selector", "{", [] );