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

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

Issue 2408493002: Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Added one more win7-specific baseline Created 4 years, 2 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_element_haspointercapture-manual.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_element_haspointercapture-manual.html b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_element_haspointercapture-manual.html
index 64afb8e02be3ff96ef15774a976fe80dde93d974..1b479a64fa58a7403c5fbbd94e541dbbb37a6910 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_element_haspointercapture-manual.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_element_haspointercapture-manual.html
@@ -35,6 +35,8 @@
test_pointerEvent.step(function () {
assert_equals(target0.hasPointerCapture(e.pointerId), false,
"after target1.setPointerCapture, target0.hasPointerCapture should be false");
+ assert_equals(target1.hasPointerCapture(e.pointerId), true,
+ "after target1.setPointerCapture, target1.hasPointerCapture should be true");
});
target0.setPointerCapture(e.pointerId);
set_capture_to_target0 = true;
@@ -49,6 +51,8 @@
test_pointerEvent.step(function () {
assert_equals(target0.hasPointerCapture(e.pointerId), false,
"after target0.releasePointerCapture, target0.hasPointerCapture should be false");
+ assert_equals(target1.hasPointerCapture(e.pointerId), false,
+ "after target0.releasePointerCapture, target1.hasPointerCapture should be false");
});
target0.setPointerCapture(e.pointerId);
set_capture_to_target0 = true;
@@ -89,6 +93,13 @@
assert_equals(target0.hasPointerCapture(e.pointerId), false,
"pointerup target0.hasPointerCapture should be false");
});
+ });
+
+ on_event(target1, "pointerup", function (e) {
+ test_pointerEvent.step(function () {
+ assert_equals(target1.hasPointerCapture(e.pointerId), false,
+ "pointerup target1.hasPointerCapture should be false");
+ });
test_pointerEvent.done();
});
}
@@ -99,17 +110,18 @@
<h4>
Test Description: This test checks if Element.hasPointerCapture returns value correctly
<ol>
- <li> Press black rectangle and do not release.
- <li> Move your pointer to yellow rectangle.
- <li> Release the pointer with no other move after that.
+ <li> Press black rectangle and do not release
+ <li> Move your pointer to purple rectangle
+ <li> Release the pointer
+ <li> Click purple rectangle
</ol>
</h4>
<p>
- <div id="target0" style="background:black"></div>
- <div id="target1" style="background:yellow"></div>
+ <div id="target0" touch-action:none></div>
+ <div id="target1" touch-action:none></div>
<div id="complete-notice">
<p>The following pointer types were detected: <span id="pointertype-log"></span>.</p>
</div>
<div id="log"></div>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698