Commit f796ad14 authored by John Resig's avatar John Resig

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

parent 69e86d4f
...@@ -33,7 +33,7 @@ test("broken", function() { ...@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment