Permalink
Browse files

synced jQuery selector tests to catch emitted errors

  • Loading branch information...
1 parent 4991a44 commit 76a9d488ecb2352bc1c55f387d1d1a923f487432 @dperini committed Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/jquery/unit/selector.js
@@ -68,7 +68,7 @@ test("broken", function() {
try {
t(name, selector, [ ]);
} catch(e){
- ok( 'SyntaxError' == e.name,
+ ok( /error/i.test(e.name),
name + ": " + selector );
}
}

0 comments on commit 76a9d48

Please sign in to comment.