Skip to content
Permalink
Browse files

Bringing some selector tests back from Sizzle.

  • Loading branch information
jeresig committed Jan 12, 2010
1 parent 6114565 commit 4151ddef9d912ea48a404cfe4a0cf439a1f46815
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/unit/selector.js
@@ -53,10 +53,11 @@ if ( location.protocol != "file:" ) {
}

test("broken", function() {
expect(7);
expect(8);
function broken(name, selector) {
try {
jQuery(selector);
ok( false, name + ": " + selector );
} catch(e){
ok( typeof e === "string" && e.indexOf("Syntax error") >= 0,
name + ": " + selector );
@@ -70,6 +71,7 @@ test("broken", function() {
broken( "Broken Selector", "()", [] );
broken( "Broken Selector", "<>", [] );
broken( "Broken Selector", "{}", [] );
broken( "Doesn't exist", ":visble", [] );
});

test("id", function() {

0 comments on commit 4151dde

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