Skip to content
Permalink
Browse files

Fixed an issue with how broken selector tests were handled in IE (the…

… exception was misdirected).
  • Loading branch information
jeresig committed Jan 5, 2009
1 parent 69e86d4 commit f796ad14fd1edf06caa28e19b38934ab54691d58
Showing with 2 additions and 2 deletions.
  1. +2 −2 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", "{", [] );

0 comments on commit f796ad1

Please sign in to comment.
You can’t perform that action at this time.