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

Unified Diff: trunk/src/chrome/test/data/devtools/touch_emulation.html

Issue 287153007: Revert 271026 "[DevTools] Interactive test for DevTools touch em..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | « trunk/src/chrome/chrome_tests.gypi ('k') | trunk/src/content/browser/renderer_host/input/touch_emulator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/test/data/devtools/touch_emulation.html
===================================================================
--- trunk/src/chrome/test/data/devtools/touch_emulation.html (revision 271031)
+++ trunk/src/chrome/test/data/devtools/touch_emulation.html (working copy)
@@ -1,60 +0,0 @@
-<head>
-<style>
-div {
- width: 400px;
- height: 400px;
-}
-</style>
-</head>
-
-<body>
-<div></div>
-<script>
-var events = [];
-var expectedEventsCount = null;
-// Prevent default to disable gestures.
-var preventDefault = true;
-
-function maybeSendEvents() {
- if (expectedEventsCount === null)
- return;
- if (events.length < expectedEventsCount)
- return;
-
- var result = events.join(" ");
- events = [];
- expectedEventsCount = null;
- window.domAutomationController.send(result);
-}
-
-function getEventNames(count) {
- expectedEventsCount = count;
- maybeSendEvents();
-}
-
-function onEvent(name, event) {
- events.push(name);
- if (preventDefault)
- event.preventDefault();
- setTimeout(maybeSendEvents, 0);
-}
-
-var names = [
- "touchstart",
- "touchmove",
- "touchend",
- "touchcancel",
- "mousedown",
- "mouseup",
- "mousemove",
- "click"
-];
-
-for (var i = 0; i < names.length; ++i) {
- document.querySelector("div").addEventListener(
- names[i],
- onEvent.bind(null, names[i]),
- false);
-}
-</script>
-</body>
« no previous file with comments | « trunk/src/chrome/chrome_tests.gypi ('k') | trunk/src/content/browser/renderer_host/input/touch_emulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698