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

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

Issue 2831933002: Make sure PointerEvents's isPrimary set correctly for stylus (Closed)
Patch Set: isprimary Created 3 years, 8 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_pointerleave_pen-manual.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_pointerleave_pen-manual.html b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_pointerleave_pen-manual.html
index 38a2f69792038edb14697abdd3da194e9018daf1..ade714272d3989def5738c73880c702ce329d39c 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_pointerleave_pen-manual.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_pointerleave_pen-manual.html
@@ -21,20 +21,24 @@
function run() {
var target0 = document.getElementById("target0");
+ var count = 0;
on_event(target0, "pointerleave", function (event) {
detected_pointertypes[event.pointerType] = true;
check_PointerEvent(event);
+ count++;
test_pointerEvent.step(function () {
assert_equals(event.pointerType, "pen", "Test should be run using a pen as input");
assert_equals(event.type, "pointerleave", "The " + event.type + " event was received");
+ assert_equals(event.isPrimary, true, "The " + event.type + ".isPrimary is true");
dtapuska 2017/04/20 21:04:14 You'll need to fix the automation scripts.
assert_true((event.clientX > target0.getBoundingClientRect().left)&&
(event.clientX < target0.getBoundingClientRect().right)&&
(event.clientY > target0.getBoundingClientRect().top)&&
(event.clientY < target0.getBoundingClientRect().bottom),
"pointerleave should be received inside of target bounds");
});
- test_pointerEvent.done(); // complete test
+ if (count >= 2)
+ test_pointerEvent.done(); // complete test
});
}
</script>

Powered by Google App Engine
This is Rietveld 408576698