mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed an issue with how broken selector tests were handled in IE (the exception was misdirected).
This commit is contained in:
parent
69e86d4f98
commit
f796ad14fd
@ -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", "{", [] );
|
||||
|
Loading…
Reference in New Issue
Block a user