<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[189321] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/189321">189321</a></dd>
<dt>Author</dt> <dd>timothy_horton@apple.com</dd>
<dt>Date</dt> <dd>2015-09-03 16:49:09 -0700 (Thu, 03 Sep 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add a test for swipe-start hysteresis
https://bugs.webkit.org/show_bug.cgi?id=148756

Reviewed by Anders Carlsson.

* swipe/basic-cached-back-swipe.html:
* swipe/pushState-cached-back-swipe.html:
* swipe/resources/swipe-test.js:
(testComplete):
* swipe/swipe-start-hysteresis-failures.html: Added.
* swipe/swipe-start-hysteresis-failures-expected.txt: Added.

* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::cacheTestRunnerCallback):
(WTR::TestRunner::clearTestRunnerCallbacks):
* WebKitTestRunner/InjectedBundle/TestRunner.h:
Make sure that we log if a client tries to install a callback twice
(since we use .add, the second call would not work).

Also, add clearTestRunnerCallbacks so tests can swap out installed
callbacks.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsswipebasiccachedbackswipehtml">trunk/LayoutTests/swipe/basic-cached-back-swipe.html</a></li>
<li><a href="#trunkLayoutTestsswipepushStatecachedbackswipehtml">trunk/LayoutTests/swipe/pushState-cached-back-swipe.html</a></li>
<li><a href="#trunkLayoutTestsswiperesourcesswipetestjs">trunk/LayoutTests/swipe/resources/swipe-test.js</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleBindingsTestRunneridl">trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleTestRunnercpp">trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundleTestRunnerh">trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsswipeswipestarthysteresisfailuresexpectedtxt">trunk/LayoutTests/swipe/swipe-start-hysteresis-failures-expected.txt</a></li>
<li><a href="#trunkLayoutTestsswipeswipestarthysteresisfailureshtml">trunk/LayoutTests/swipe/swipe-start-hysteresis-failures.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/LayoutTests/ChangeLog        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -1,5 +1,19 @@
</span><span class="cx"> 2015-09-03  Tim Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Add a test for swipe-start hysteresis
+        https://bugs.webkit.org/show_bug.cgi?id=148756
+
+        Reviewed by Anders Carlsson.
+
+        * swipe/basic-cached-back-swipe.html:
+        * swipe/pushState-cached-back-swipe.html:
+        * swipe/resources/swipe-test.js:
+        (testComplete):
+        * swipe/swipe-start-hysteresis-failures.html: Added.
+        * swipe/swipe-start-hysteresis-failures-expected.txt: Added.
+
+2015-09-03  Tim Horton  &lt;timothy_horton@apple.com&gt;
+
</ins><span class="cx">         Un-skip swipe tests on Mavericks
</span><span class="cx"> 
</span><span class="cx">         * platform/mac-mavericks/TestExpectations:
</span></span></pre></div>
<a id="trunkLayoutTestsswipebasiccachedbackswipehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/swipe/basic-cached-back-swipe.html (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/swipe/basic-cached-back-swipe.html        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/LayoutTests/swipe/basic-cached-back-swipe.html        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -53,8 +53,7 @@
</span><span class="cx">     shouldBe(true, isFirstPage(), &quot;The swipe should have navigated back to the first page.&quot;);
</span><span class="cx">     measuredDurationShouldBeLessThan(&quot;snapshotRemoval&quot;, 1000, &quot;Because we're using the page cache, it shouldn't be long between the gesture completing and the snapshot being removed.&quot;)
</span><span class="cx"> 
</span><del>-    dumpLog();
-    testRunner.notifyDone();
</del><ins>+    testComplete();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function isFirstPage()
</span></span></pre></div>
<a id="trunkLayoutTestsswipepushStatecachedbackswipehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/swipe/pushState-cached-back-swipe.html (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/swipe/pushState-cached-back-swipe.html        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/LayoutTests/swipe/pushState-cached-back-swipe.html        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -53,8 +53,7 @@
</span><span class="cx">     shouldBe(true, isFirstPage(), &quot;The swipe should have navigated back to the first page.&quot;);
</span><span class="cx">     measuredDurationShouldBeLessThan(&quot;snapshotRemoval&quot;, 1000, &quot;Because we're using the page cache, it shouldn't be long between the gesture completing and the snapshot being removed.&quot;)
</span><span class="cx"> 
</span><del>-    dumpLog();
-    testRunner.notifyDone();
</del><ins>+    testComplete();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function isFirstPage()
</span></span></pre></div>
<a id="trunkLayoutTestsswiperesourcesswipetestjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/swipe/resources/swipe-test.js (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/swipe/resources/swipe-test.js        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/LayoutTests/swipe/resources/swipe-test.js        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -52,6 +52,12 @@
</span><span class="cx">     window.document.body.innerHTML = window.localStorage[&quot;swipeLogging&quot;];
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function testComplete()
+{
+    dumpLog();
+    window.testRunner.notifyDone();
+}
+
</ins><span class="cx"> function initializeLog()
</span><span class="cx"> {
</span><span class="cx">     window.localStorage[&quot;swipeLogging&quot;] = &quot;&quot;;
</span></span></pre></div>
<a id="trunkLayoutTestsswipeswipestarthysteresisfailuresexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/swipe/swipe-start-hysteresis-failures-expected.txt (0 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/swipe/swipe-start-hysteresis-failures-expected.txt                                (rev 0)
+++ trunk/LayoutTests/swipe/swipe-start-hysteresis-failures-expected.txt        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+swipe event (delta 0 0, phase 'maybegin')
+scroll event (delta 1 0, phase 'began')
+scroll event (delta 0 0, phase 'changed')
+scroll event (delta 0 0, phase 'ended')
+swipe event (delta 0 0, phase 'maybegin')
+scroll event (delta 2 2, phase 'began')
+scroll event (delta 0 0, phase 'changed')
+scroll event (delta 0 0, phase 'ended')
+swipe event (delta 0 0, phase 'maybegin')
+scroll event (delta 0 2, phase 'began')
+scroll event (delta 0 0, phase 'changed')
+scroll event (delta 0 0, phase 'ended')
+swipe event (delta 0 0, phase 'maybegin')
+scroll event (delta 1 0, phase 'began')
+scroll event (delta 0 2, phase 'changed')
+scroll event (delta 0 0, phase 'ended')
+swipe event (delta 0 0, phase 'maybegin')
+scroll event (delta 3 1, phase 'began')
+scroll event (delta 0 0, phase 'changed')
+didBeginSwipe
+scroll event (delta 0 0, phase 'ended')
+swipe event (delta 0 0, phase 'ended')
+
</ins></span></pre></div>
<a id="trunkLayoutTestsswipeswipestarthysteresisfailureshtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/swipe/swipe-start-hysteresis-failures.html (0 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/swipe/swipe-start-hysteresis-failures.html                                (rev 0)
+++ trunk/LayoutTests/swipe/swipe-start-hysteresis-failures.html        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -0,0 +1,130 @@
</span><ins>+&lt;head&gt;
+&lt;style&gt;
+html {
+    font-size: 32pt;
+}
+&lt;/style&gt;
+&lt;script src=&quot;resources/swipe-test.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+function doShortSwipeGesture()
+{
+    eventSender.mouseMoveTo(100, 100);
+
+    // Total delta of 10, 0; should not be enough to start a swipe.
+    eventQueue.enqueueSwipeEvent(0, 0, 'maybegin');
+    eventQueue.enqueueScrollEvent(1, 0, 'began');
+    eventQueue.enqueueScrollEvent(0, 0, 'changed');
+    eventQueue.enqueueScrollEvent(0, 0, 'ended');
+
+    waitForEventDispatch(doDiagonalSwipeGesture);
+}
+
+function doDiagonalSwipeGesture()
+{
+    // Total delta of 20, 20; this is ordinarily sufficient magnitude to start a swipe,
+    // but is too diagonal to start a swipe.
+    eventQueue.enqueueSwipeEvent(0, 0, 'maybegin');
+    eventQueue.enqueueScrollEvent(2, 2, 'began');
+    eventQueue.enqueueScrollEvent(0, 0, 'changed');
+    eventQueue.enqueueScrollEvent(0, 0, 'ended');
+
+    waitForEventDispatch(doVerticalSwipeGesture);
+}
+
+function doVerticalSwipeGesture()
+{
+    // Total delta of 0, 20; this is ordinarily sufficient magnitude to start a swipe,
+    // but is completely vertical, so we won't start a swipe.
+    eventQueue.enqueueSwipeEvent(0, 0, 'maybegin');
+    eventQueue.enqueueScrollEvent(0, 2, 'began');
+    eventQueue.enqueueScrollEvent(0, 0, 'changed');
+    eventQueue.enqueueScrollEvent(0, 0, 'ended');
+
+    waitForEventDispatch(doHorizontalThenVerticalSwipeGesture);
+}
+
+function doHorizontalThenVerticalSwipeGesture()
+{
+    // Total delta of 10, 20; this is ordinarily sufficient magnitude to start a swipe,
+    // but is too vertical, so we won't start a swipe.
+    eventQueue.enqueueSwipeEvent(0, 0, 'maybegin');
+    eventQueue.enqueueScrollEvent(1, 0, 'began');
+    eventQueue.enqueueScrollEvent(0, 2, 'changed');
+    eventQueue.enqueueScrollEvent(0, 0, 'ended');
+
+    waitForEventDispatch(doRegularSwipeGesture);
+}
+
+function doRegularSwipeGesture()
+{
+    // Swap in a different callback that makes sure we *do* reach didBeginSwipe.
+    testRunner.clearTestRunnerCallbacks();
+    testRunner.installDidBeginSwipeCallback(function () {
+        log(&quot;didBeginSwipe&quot;);
+
+        // Need a swipe-end event to clean up.
+        eventQueue.enqueueSwipeEvent(0, 0, 'ended');
+    });
+
+    testRunner.installDidRemoveSwipeSnapshotCallback(function () {
+        testComplete();
+    });
+
+    // Total delta of 30, 10; this should start a swipe as usual.
+    eventQueue.enqueueSwipeEvent(0, 0, 'maybegin');
+    eventQueue.enqueueScrollEvent(3, 1, 'began');
+    eventQueue.enqueueScrollEvent(0, 0, 'changed');
+    eventQueue.enqueueScrollEvent(0, 0, 'ended');
+}
+
+function waitForEventDispatch(callback)
+{
+    var interval = setInterval(function () { 
+        if (!eventQueue.hasPendingEvents()) {
+            clearInterval(interval);
+            callback();
+        }
+    }, 0);
+}
+
+function didBeginSwipeNotReachedCallback()
+{
+    log(&quot;Failure. Should never begin a swipe, because all of the attempted swipes should fail due to the swipe-start hysteresis.&quot;);
+}
+
+function isFirstPage()
+{
+    return window.location.href.indexOf(&quot;second&quot;) == -1;
+}
+
+window.onload = function () {
+    if (!window.eventSender || !window.testRunner) {
+        document.body.innerHTML = &quot;This test must be run in WebKitTestRunner.&quot;;
+        return;
+    }
+
+    document.body.innerHTML = isFirstPage() ? &quot;first&quot; : &quot;second&quot;;
+
+    if (isFirstPage()) {
+        initializeLog();
+
+        testRunner.setNavigationGesturesEnabled(true);
+
+        testRunner.installDidBeginSwipeCallback(didBeginSwipeNotReachedCallback);
+
+        testRunner.overridePreference(&quot;WebKitUsesPageCachePreferenceKey&quot;, 1);
+        testRunner.dumpAsText();
+        testRunner.waitUntilDone();
+
+        setTimeout(function () { 
+            window.location.href = window.location.href + &quot;?second&quot;;
+        }, 0);
+        return;
+    }
+
+    doShortSwipeGesture();
+};
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;/body&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/Tools/ChangeLog        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2015-09-03  Tim Horton  &lt;timothy_horton@apple.com&gt;
+
+        Add a test for swipe-start hysteresis
+        https://bugs.webkit.org/show_bug.cgi?id=148756
+
+        Reviewed by Anders Carlsson.
+
+        * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
+        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
+        (WTR::cacheTestRunnerCallback):
+        (WTR::TestRunner::clearTestRunnerCallbacks):
+        * WebKitTestRunner/InjectedBundle/TestRunner.h:
+        Make sure that we log if a client tries to install a callback twice
+        (since we use .add, the second call would not work).
+
+        Also, add clearTestRunnerCallbacks so tests can swap out installed
+        callbacks.
+
</ins><span class="cx"> 2015-09-03  Anders Carlsson  &lt;andersca@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         DumpRenderTree should automatically compute HTTP URLs for HTTP tests
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleBindingsTestRunneridl"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -146,6 +146,8 @@
</span><span class="cx">     void removeChromeInputField(object callback);
</span><span class="cx">     void focusWebView(object callback);
</span><span class="cx"> 
</span><ins>+    void clearTestRunnerCallbacks();
+
</ins><span class="cx">     void setBackingScaleFactor(double backingScaleFactor, object callback);
</span><span class="cx"> 
</span><span class="cx">     void setWindowIsKey(boolean isKey);
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleTestRunnercpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -521,6 +521,11 @@
</span><span class="cx">     if (!callback)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><ins>+    if (callbackMap().contains(index)) {
+        InjectedBundle::singleton().outputText(String::format(&quot;FAIL: Tried to install a second TestRunner callback for the same event (id %d)\n\n&quot;, index));
+        return;
+    }
+
</ins><span class="cx">     WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::singleton().page()-&gt;page());
</span><span class="cx">     JSContextRef context = WKBundleFrameGetJavaScriptContext(mainFrame);
</span><span class="cx">     JSValueProtect(context, callback);
</span><span class="lines">@@ -538,6 +543,18 @@
</span><span class="cx">     JSValueUnprotect(context, callback);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void TestRunner::clearTestRunnerCallbacks()
+{
+    for (auto&amp; iter : callbackMap()) {
+        WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::singleton().page()-&gt;page());
+        JSContextRef context = WKBundleFrameGetJavaScriptContext(mainFrame);
+        JSObjectRef callback = JSValueToObject(context, iter.value, 0);
+        JSValueUnprotect(context, callback);
+    }
+
+    callbackMap().clear();
+}
+
</ins><span class="cx"> void TestRunner::addChromeInputField(JSValueRef callback)
</span><span class="cx"> {
</span><span class="cx">     cacheTestRunnerCallback(AddChromeInputFieldCallbackID, callback);
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundleTestRunnerh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h (189320 => 189321)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h        2015-09-03 23:44:51 UTC (rev 189320)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h        2015-09-03 23:49:09 UTC (rev 189321)
</span><span class="lines">@@ -296,6 +296,8 @@
</span><span class="cx">     void callDidEndSwipeCallback();
</span><span class="cx">     void callDidRemoveSwipeSnapshotCallback();
</span><span class="cx"> 
</span><ins>+    void clearTestRunnerCallbacks();
+
</ins><span class="cx"> private:
</span><span class="cx">     TestRunner();
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>