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