From: John Resig Date: Mon, 5 Jan 2009 20:43:58 +0000 (+0000) Subject: Fixed an issue with how broken selector tests were handled in IE (the exception was... X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;ds=sidebyside;h=f796ad14fd1edf06caa28e19b38934ab54691d58;p=jquery.git Fixed an issue with how broken selector tests were handled in IE (the exception was misdirected). --- diff --git a/test/unit/selector.js b/test/unit/selector.js index c49b76c..183bacb 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -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", "{", [] );