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> |