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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_setpointercapture_relatedtarget-manual.html

Issue 2376103007: Import wpt@09907a9c4bcee14986431d53e4381384c7c69107 (Closed)
Patch Set: update platform expectations Created 4 years, 3 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/imported/wpt/pointerevents/pointerevent_setpointercapture_relatedtarget-manual.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_setpointercapture_relatedtarget-manual.html b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_setpointercapture_relatedtarget-manual.html
index 45b67414b2673eb96fdaa4652fa446da3557c87f..bc3195127279fca7685c1702664bffc73b54d99d 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_setpointercapture_relatedtarget-manual.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_setpointercapture_relatedtarget-manual.html
@@ -13,9 +13,9 @@
<h4>
Test Description: This test checks if setCapture/releaseCapture functions works properly. Complete the following actions:
<ol>
- <li> Put your mouse over the lower rectangle. pointerover should be received for the purple rectangle
+ <li> Put your mouse over the purple rectangle. pointerover should be received for the purple rectangle
<li> Press and hold left mouse button over "Set Capture" button
- <li> Put your mouse over the upper rectangle. pointerover should be received for the black rectangle
+ <li> Move your mouse. pointerover should be received for the black rectangle
<li> Release left mouse button to complete the test.
</ol>
</h4>
@@ -65,15 +65,14 @@
}
function run() {
- // After invoking the setPointerCapture method on an element, subsequent pointer events for the specified pointer must be targeted at that element.
- // Additionally, the relatedTarget property of all such pointer events must be set to null.
- // TA: 13.3
+ // After invoking the setPointerCapture method on an element, subsequent pointer events for the specified pointer must be targeted at that element
+ // and boundary events should be sent accordingly and relatedTarget should behave normally.
on_event(target0, "pointerover", function (event) {
log("pointerover", document.getElementById('target0'));
if(isPointerCapture && isPointeroverGot) {
test(function() {
- assert_true(event.relatedTarget==null, "relatedTarget is null when the capture is set")
- }, "relatedTarget is null when the capture is set. relatedTarget is " + event.relatedTarget);
+ assert_not_equals(event.relatedTarget, null, "relatedTarget should not be null even when the capture is set")
+ }, "relatedTarget should not be null even when the capture is set.");
done();
}
});
@@ -98,4 +97,4 @@
</div>
<div id="log"></div>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698