Changeset 106684 in webkit
- Timestamp:
- Feb 3, 2012 12:46:37 PM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106680 r106684 1 2012-02-03 David Grogan <dgrogan@chromium.org> 2 3 Make js-test-pre.js more worker friendly 4 https://bugs.webkit.org/show_bug.cgi?id=77487 5 6 Replace uses of 'window' with 'self'. 7 8 Reviewed by Ojan Vafai. 9 10 * fast/js/resources/js-test-pre.js: 11 * storage/indexeddb/resources/basics.js: 12 1 13 2012-02-03 Jochen Eisinger <jochen@chromium.org> 2 14 -
trunk/LayoutTests/fast/js/resources/js-test-pre.js
r102918 r106684 1 1 // svg/dynamic-updates tests set enablePixelTesting=true, as we want to dump text + pixel results 2 if ( window.layoutTestController)3 layoutTestController.dumpAsText( window.enablePixelTesting);2 if (self.layoutTestController) 3 layoutTestController.dumpAsText(self.enablePixelTesting); 4 4 5 5 var description, debug, successfullyParsed, errorMessage; … … 78 78 insertStyleSheet(); 79 79 80 window.onerror = function(message)80 self.onerror = function(message) 81 81 { 82 82 errorMessage = message; … … 419 419 { 420 420 wasFinishJSTestCalled = true; 421 if (! window.wasPostTestScriptParsed)421 if (!self.wasPostTestScriptParsed) 422 422 return; 423 423 isSuccessfullyParsed(); 424 if ( window.jsTestIsAsync && window.layoutTestController)424 if (self.jsTestIsAsync && self.layoutTestController) 425 425 layoutTestController.notifyDone(); 426 426 } -
trunk/LayoutTests/storage/indexeddb/resources/basics.js
r106392 r106684 1 1 if (this.importScripts) { 2 // FIXME: Change js-test-pre.js to use self in place of window where3 // possible, so we can remove the next line. http://webkit.org/b/767624 window = self;5 2 importScripts('../../../fast/js/resources/js-test-pre.js'); 6 3 importScripts('idb-worker-common.js');
Note: See TracChangeset
for help on using the changeset viewer.