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

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

Issue 2521993003: Send boundary events before gotpointercapture (Closed)
Patch Set: Fix the tests Created 4 years 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/mouse-pointer-capture-expected.txt » ('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-capture.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html b/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html
index 9941140bb94eb2b00a29abf1fab3544a14e6a246..8d101491a1f82a13c7b55cbdbb234e52aa4056ef 100644
--- a/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html
+++ b/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html
@@ -67,7 +67,7 @@ var pointereventProperties = [
];
function checkPointerCaptureProperties(lastPointerEvent, currentPointerEvent) {
- if (lastPointerEvent == null)
+ if (lastPointerEvent == null || lastPointerEvent.target == document)
return false;
var isImmediateRelease = (lastPointerEvent.type == 'pointerup') &&
@@ -77,10 +77,10 @@ function checkPointerCaptureProperties(lastPointerEvent, currentPointerEvent) {
if (!isImmediateRelease && !isDelayedCapture)
return false;
- for (var i = 0; i< pointereventProperties. length; i++) {
+ for (var i = 0; i < pointereventProperties.length; i++) {
var property = pointereventProperties[i];
if (lastPointerEvent[property] !== currentPointerEvent[property]) {
- debug("Capture pointer event attributes are incorrect!");
+ debug("Capture pointer event attributes are incorrect! ");
return true;
}
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698