Changeset 25535 for trunk/LayoutTests/fast/js/window-eval-context.html
- Timestamp:
- 09/13/07 07:50:22 (14 months ago)
- Files:
-
- 1 modified
-
trunk/LayoutTests/fast/js/window-eval-context.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/fast/js/window-eval-context.html
r25534 r25535 27 27 otherWindow.localVar = 2; 28 28 res = otherWindow.eval('localVar == 2'); 29 print("Test that otherWindow.eval() is executed with otherWindow in scope " + (res ? "PASS" : "FAIL")) ;29 print("Test that otherWindow.eval() is executed with otherWindow in scope: " + (res ? "PASS" : "FAIL")) ; 30 30 31 31 res = otherWindow.eval('window == otherWindow'); 32 print("Test that otherWindow.eval() has otherWindow as the window object : " + (res ? "PASS" : "FAIL")) ;32 print("Test that otherWindow.eval() has otherWindow as the window object: " + (res ? "PASS" : "FAIL")) ; 33 33 34 34 var savedThis = this; 35 35 res = otherWindow.eval('this == savedThis'); 36 36 print("Test that otherWindow.eval() does not change 'this': " + (res ? "PASS" : "FAIL")) ; 37 38 otherWindow.eval('var myObject = new Object()'); 39 res = (typeof myObject == "undefined"); 40 print("Test that otherWindow.eval() changes variable context: " + (res ? "PASS" : "FAIL")) ; 37 41 </script>