Permalink
Browse files

Fix scoping in sizzle test

See http://ada.adrianlang.de/with-trouble for an explanation of the issue.
  • Loading branch information...
adrianheine committed May 10, 2013
1 parent 348d053 commit 8b86af79fab863f381a8c191e896914a1baf4726
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/sizzle/index.js
@@ -79,7 +79,7 @@ function test(fn) {
};
}
exports['element'] = test(function (window) { with (window) {
exports['element'] = test(function (window) { with (window) { (function () {
expect( 37 );
equal( Sizzle("").length, 0, "Empty selector returns an empty array" );
@@ -159,7 +159,7 @@ exports['element'] = test(function (window) { with (window) {
// Real use case would be using .watch in browsers with window.watch (see Issue #157)
q("qunit-fixture")[0].appendChild( document.createElement("toString") ).id = "toString";
t( "Element name matches Object.prototype property", "toString#toString", ["toString"] );
}});
}())}});
exports['broken'] = test(function (window) { with (window) {
expect( 22 );

0 comments on commit 8b86af7

Please sign in to comment.