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

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

Issue 1617863002: Set the correct pressure for pointer events based on force (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Win/OSX compile error Created 4 years, 11 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/mouse-pointer-event-properties.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html b/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html
index b0cdefa7106fe5f7af4abcdae3b5f2864fe9a426..1b4f3e1f2cd7b8c775ce52e8863ba23beed5383a 100644
--- a/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html
+++ b/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html
@@ -51,9 +51,10 @@ function init() {
debug("Received " + event.type);
- if (event.type.startsWith("pointer"))
+ if (event.type.startsWith("pointer")) {
lastPointerEvent = event;
- else {
+ shouldBeEqualToNumber("event.pressure", event.buttons ? 0.5 : 0.0);
mustaq 2016/01/25 16:34:29 Please add 'pressure' in numericAttributes[] above
Navid Zolghadr 2016/01/25 20:26:50 Done.
+ } else {
shouldBeNonNull("lastPointerEvent");
shouldBeEqualToString("lastPointerEvent.type", event.type.replace("mouse", "pointer"));

Powered by Google App Engine
This is Rietveld 408576698