Changeset 106684 in webkit


Ignore:
Timestamp:
Feb 3, 2012 12:46:37 PM (12 years ago)
Author:
dgrogan@chromium.org
Message:

Make js-test-pre.js more worker friendly
https://bugs.webkit.org/show_bug.cgi?id=77487

Replace uses of 'window' with 'self'.

Reviewed by Ojan Vafai.

  • fast/js/resources/js-test-pre.js:
  • storage/indexeddb/resources/basics.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r106680 r106684  
     12012-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
    1132012-02-03  Jochen Eisinger  <jochen@chromium.org>
    214
  • trunk/LayoutTests/fast/js/resources/js-test-pre.js

    r102918 r106684  
    11// svg/dynamic-updates tests set enablePixelTesting=true, as we want to dump text + pixel results
    2 if (window.layoutTestController)
    3     layoutTestController.dumpAsText(window.enablePixelTesting);
     2if (self.layoutTestController)
     3    layoutTestController.dumpAsText(self.enablePixelTesting);
    44
    55var description, debug, successfullyParsed, errorMessage;
     
    7878        insertStyleSheet();
    7979
    80     window.onerror = function(message)
     80    self.onerror = function(message)
    8181    {
    8282        errorMessage = message;
     
    419419{
    420420    wasFinishJSTestCalled = true;
    421     if (!window.wasPostTestScriptParsed)
     421    if (!self.wasPostTestScriptParsed)
    422422        return;
    423423    isSuccessfullyParsed();
    424     if (window.jsTestIsAsync && window.layoutTestController)
     424    if (self.jsTestIsAsync && self.layoutTestController)
    425425        layoutTestController.notifyDone();
    426426}
  • trunk/LayoutTests/storage/indexeddb/resources/basics.js

    r106392 r106684  
    11if (this.importScripts) {
    2     // FIXME: Change js-test-pre.js to use self in place of window where
    3     // possible, so we can remove the next line.  http://webkit.org/b/76762
    4     window = self;
    52    importScripts('../../../fast/js/resources/js-test-pre.js');
    63    importScripts('idb-worker-common.js');
Note: See TracChangeset for help on using the changeset viewer.