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

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

Issue 145003002: [DevTools] Switch from blink-based to content-based touch emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: another rebase Created 6 years, 8 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
Index: LayoutTests/fast/events/touch/emulated-touch-iframe.html
diff --git a/LayoutTests/fast/events/touch/emulated-touch-iframe.html b/LayoutTests/fast/events/touch/emulated-touch-iframe.html
deleted file mode 100644
index c7a4daadfb88b735ba93a739d59d91cf084fa5db..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/events/touch/emulated-touch-iframe.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<html>
-<script src="../../../resources/js-test.js"></script>
-<body>
-<iframe style="position:absolute; top:100px; left:100px;" src="./resources/emulated-touch-iframe2.html"></iframe>
-<p>Test touchend events are emulated in iframes correctly.</p>
-<div id="console"></div>
-<script type="text/javascript">
-
-var touchstartCount = 0;
-var touchmoveCount = 0;
-var EXPECTED_TOUCHSTART_COUNT = 1;
-var EXPECTED_TOUCHMOVE_COUNT = 1;
-var shouldBail;
-
-function testComplete()
-{
- if (shouldBail)
- return;
-
- if (touchstartCount > EXPECTED_TOUCHSTART_COUNT) {
- debug("touchstart fired for the top frame, too, but should only fire for the iframe!");
- 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;
-}
-
-function runTest() {
- if (window.eventSender && window.internals && window.internals.settings) {
- window.eventSender.dragMode = false;
- window.internals.settings.setTouchEventEmulationEnabled(true);
-
- eventSender.mouseMoveTo(110, 110);
- eventSender.mouseDown(0);
- eventSender.mouseMoveTo(120, 130);
- eventSender.mouseUp(0);
- } else
- debug('This test requires DRT.');
-}
-
-if (window.testRunner)
- window.testRunner.waitUntilDone();
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698