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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html

Issue 2678523002: Update a few pointerevent test and the automations (Closed)
Patch Set: Add exception for Mac due to the lack of touch support Created 3 years, 10 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: third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html
index 4d152b73a6a6e87ef953dbbd2940618a57cf57e7..ca305f74f78114b4fbecfe70b0c8c76979f8cf0e 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html
@@ -39,15 +39,13 @@
window.onload = function() {
on_event(captureButton, 'pointerdown', function(event) {
detected_pointertypes[event.pointerType] = true;
- sPointerCapture(event);
+ target0.setPointerCapture(event.pointerId);
});
on_event(target0, 'gotpointercapture', function(e) {
log("gotpointercapture", target1);
- setTimeout(function() {
- isDisconnected = true;
- target0.parentNode.removeChild(target0);
- }, 250);
+ isDisconnected = true;
+ target0.parentNode.removeChild(target0);
});
on_event(target0, 'lostpointercapture', function(e) {
@@ -63,7 +61,6 @@
test(function() {
// TA: 11.3
assert_true(isDisconnected, "lostpointercapture must be fired on the document");
-
}, "lostpointercapture is dispatched on the document");
test_lostpointercapture.done();
});

Powered by Google App Engine
This is Rietveld 408576698