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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-chorded-buttons.html

Issue 2141993003: PointerEvents for long-press: fix double firing & canceling MEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed formats. Created 4 years, 5 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 | third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-long-press.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-chorded-buttons.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-chorded-buttons.html b/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-chorded-buttons.html
index ee886c3bb584dcf4d2995fbc0a33b747a30cb092..16741dfb8aadd078111c99e413bc57a69b190093 100644
--- a/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-chorded-buttons.html
+++ b/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-chorded-buttons.html
@@ -10,6 +10,12 @@ div.box {
}
</style>
+<h1>PointerEvent: Verifies that chorded buttons fire appropriate events</h1>
+
+<div id="target" class="box" style="background-color:red"></div>
+
+<div id="log"></div>
+
<script>
var receivedEvents = [];
var preventDefaultOnPointerDown = false;
@@ -131,9 +137,7 @@ function runTests() {
], "LM button with preventDefault on pointerdown");
}
-function run() {
- setup({explicit_done: true});
-
+test(function() {
if (!window.eventSender)
assert_true(true, "No eventSender, skipped tests");
else if (!window.PointerEvent)
@@ -144,13 +148,5 @@ function run() {
}
done();
-}
+}, "PointerEvent: Verifies that chorded buttons fire appropriate events");
</script>
-
-<body onload="run()">
- <h1>PointerEvent: Verifies that chorded buttons fire appropriate events</h1>
-
- <div id="target" class="box" style="background-color:red"></div>
-
- <div id="log"></div>
-</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-long-press.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698