Changeset 198915 in webkit


Ignore:
Timestamp:
Mar 31, 2016 2:03:52 PM (8 years ago)
Author:
timothy@apple.com
Message:

Web Automation: Add support for script timeouts to the evaluateJavaScriptFunction command

https://bugs.webkit.org/show_bug.cgi?id=156052
rdar://problem/25457151

Address additional review comments.

  • WebProcess/Automation/WebAutomationSessionProxy.js:

(AutomationSessionProxy.prototype.evaluateJavaScriptFunction): Add semicolons and remove
and clearTimeout that wasn't needed.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r198914 r198915  
     12016-03-31  Timothy Hatcher  <timothy@apple.com>
     2
     3        Web Automation: Add support for script timeouts to the evaluateJavaScriptFunction command
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=156052
     6        rdar://problem/25457151
     7
     8        Address additional review comments.
     9
     10        * WebProcess/Automation/WebAutomationSessionProxy.js:
     11        (AutomationSessionProxy.prototype.evaluateJavaScriptFunction): Add semicolons and remove
     12        and clearTimeout that wasn't needed.
     13
    1142016-03-31  Timothy Hatcher  <timothy@apple.com>
    215
  • trunk/Source/WebKit2/WebProcess/Automation/WebAutomationSessionProxy.js

    r198913 r198915  
    5151        let timeoutIdentifier = 0;
    5252
    53         let reportResult = (result) => { clearTimeout(timeoutIdentifier); resultCallback(frameID, callbackID, this._jsonStringify(result), false); }
    54         let reportTimeoutError = () => { clearTimeout(timeoutIdentifier); resultCallback(frameID, callbackID, "JavaScriptTimeout", true); }
     53        let reportResult = (result) => { clearTimeout(timeoutIdentifier); resultCallback(frameID, callbackID, this._jsonStringify(result), false); };
     54        let reportTimeoutError = () => { resultCallback(frameID, callbackID, "JavaScriptTimeout", true); };
    5555
    5656        if (expectsImplicitCallbackArgument) {
Note: See TracChangeset for help on using the changeset viewer.