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

Unified Diff: tools/perf/benchmarks/test_tap/test_tap.html

Issue 2245133006: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL for perf tryjob on mac Created 4 years, 4 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 | « tools/perf/benchmarks/test_tap.py ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/test_tap/test_tap.html
diff --git a/tools/perf/benchmarks/test_tap/test_tap.html b/tools/perf/benchmarks/test_tap/test_tap.html
new file mode 100644
index 0000000000000000000000000000000000000000..789d5f9f4f9b3c60366e68c8610fd4b3486dea96
--- /dev/null
+++ b/tools/perf/benchmarks/test_tap/test_tap.html
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+</head>
+<body>
+<div id="test">Click/tap me</div>
+<script>
+var POSSIBLE_HANDLERS = [
+ 'touchstart',
+ 'touchmove',
+ 'touchend',
+ 'mouseover',
+ 'mousemove',
+ 'mousedown',
+ 'mouseup',
+ 'click'
+];
+
+var triggeredHandlers = [];
+var handlersInitialized = false;
+
+window.addEventListener('load', function() {
+ var element = document.getElementById('test');
+ POSSIBLE_HANDLERS.forEach(function(handler) {
+ element.addEventListener(handler, function() {
+ triggeredHandlers.push(handler);
+ });
+ });
+ handlersInitialized = true;
+});
+</script>
+</body>
+</html>
« no previous file with comments | « tools/perf/benchmarks/test_tap.py ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698