Browse files

Makes globalEval unit tests more consistent.

  • Loading branch information...
1 parent b3d539e commit c8dfddda4babc18797e4c3d9b28cb34698fb6fd0 @jaubourg jaubourg committed Mar 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/core.js
View
4 test/unit/core.js
@@ -185,8 +185,8 @@ test( "globalEval", function() {
window.globalEvalTest = false;
- jQuery.globalEval( "this.globalEvalTest = this;" );
- same( window.globalEvalTest, window, "Test context is the window object" );
+ jQuery.globalEval( "this.globalEvalTest = true;" );
+ ok( window.globalEvalTest, "Test context (this) is the window object" );
window.globalEvalTest = undefined;
});

0 comments on commit c8dfddd

Please sign in to comment.