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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-event-properties.html

Issue 1976603006: Set view property of pointer events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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/fast/events/pointerevents/touch-pointer-event-properties.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-event-properties.html b/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-event-properties.html
index 9ebfd50569539b207663d1b98c143ad28759daae..61f92f8a0fbab2761aecf8b8fca9b7fe08bea657 100644
--- a/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-event-properties.html
+++ b/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-event-properties.html
@@ -4,6 +4,7 @@
<h1>Test that pointer properties propagates from touches to PointerEvents</h1>
<div id="target0" style="height: 100px;"></div>
<script>
+window.name = "mainWindow";
async_test(function() {
if (!window.eventSender) {
this.done();
@@ -24,6 +25,7 @@ async_test(function() {
var pp = POINTER_PROPERTIES[event.pointerId-1];
for (var i in pp)
assert_equals(event[i], pp[i], "" + i);
+ assert_equals(event.view.name, "mainWindow");
}, "Pointer event properties for pointer " + event.pointerId + " on " + event.type);
}
on_event(target0, "pointerdown", this.step_func(checkPointerEvent));

Powered by Google App Engine
This is Rietveld 408576698