Changeset 91258 in webkit


Ignore:
Timestamp:
Jul 19, 2011 8:51:40 AM (13 years ago)
Author:
yurys@chromium.org
Message:

[Chromium] Web Inspector: add sanity test for shared worker inspector
https://bugs.webkit.org/show_bug.cgi?id=64799

Reviewed by Pavel Feldman.

  • src/js/Tests.js:

(.TestSuite.prototype.testSharedWorker):
(.TestSuite.prototype.evaluateInConsole_):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r91250 r91258  
     12011-07-19  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        [Chromium] Web Inspector: add sanity test for shared worker inspector
     4        https://bugs.webkit.org/show_bug.cgi?id=64799
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * src/js/Tests.js:
     9        (.TestSuite.prototype.testSharedWorker):
     10        (.TestSuite.prototype.evaluateInConsole_):
     11
    1122011-07-19  Vsevolod Vlasov  <vsevik@chromium.org>
    213
  • trunk/Source/WebKit/chromium/src/js/Tests.js

    r86159 r91258  
    537537
    538538
     539TestSuite.prototype.testSharedWorker = function()
     540{
     541    function didEvaluateInConsole(resultText) {
     542        this.assertEquals("2011", resultText);
     543        this.releaseControl();
     544    }
     545    this.evaluateInConsole_("globalVar", didEvaluateInConsole.bind(this));
     546    this.takeControl();
     547};
     548
     549
    539550/**
    540551 * Serializes options collection to string.
     
    615626    WebInspector.showConsole();
    616627    WebInspector.console.prompt.text = code;
    617     WebInspector.console.promptElement.dispatchEvent( TestSuite.createKeyEvent("Enter"));
     628    WebInspector.console.promptElement.dispatchEvent(TestSuite.createKeyEvent("Enter"));
    618629
    619630    this.addSniffer(WebInspector.ConsoleView.prototype, "addMessage",
Note: See TracChangeset for help on using the changeset viewer.