Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: LayoutTests/fast/events/touch/emulated-touch-iframe.html

Issue 12561004: Merge 144608 "Web Inspector: touchmove not emulated inside iframe" (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/resources/emulated-touch-iframe2.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/touch/emulated-touch-iframe.html
===================================================================
--- LayoutTests/fast/events/touch/emulated-touch-iframe.html (revision 145698)
+++ LayoutTests/fast/events/touch/emulated-touch-iframe.html (working copy)
@@ -7,7 +7,9 @@
<script type="text/javascript">
var touchstartCount = 0;
+var touchmoveCount = 0;
var EXPECTED_TOUCHSTART_COUNT = 1;
+var EXPECTED_TOUCHMOVE_COUNT = 1;
var shouldBail;
function testComplete()
@@ -20,11 +22,21 @@
shouldBail = true;
}
+ if (!touchmoveCount)
+ debug("touchmove not fired for the iframe!");
+ else if (touchmoveCount > EXPECTED_TOUCHMOVE_COUNT)
+ debug("touchmove fired too many times!");
+
debug("touchend (test will time out if broken)");
window.internals.settings.setTouchEventEmulationEnabled(false);
window.testRunner.notifyDone();
}
+function handleTouchmove()
+{
+ ++touchmoveCount;
+}
+
function handleTouchstart()
{
++touchstartCount;
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/resources/emulated-touch-iframe2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698