Fixed an issue with how broken selector tests were handled in IE (the exception was misdirected).

This commit is contained in:
John Resig 2009-01-05 20:43:58 +00:00
parent 69e86d4f98
commit f796ad14fd

View File

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