git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e86d4
)
Fixed an issue with how broken selector tests were handled in IE (the exception was...
author
John Resig
<jeresig@gmail.com>
Mon, 5 Jan 2009 20:43:58 +0000
(20:43 +0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 5 Jan 2009 20:43:58 +0000
(20:43 +0000)
test/unit/selector.js
patch
|
blob
|
history
diff --git
a/test/unit/selector.js
b/test/unit/selector.js
index
c49b76c
..
183bacb
100644
(file)
--- a/
test/unit/selector.js
+++ b/
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", "{", [] );