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

Unified Diff: third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/constructors/pointer-event-constructor-expected.txt

Issue 2024243002: Set default width/height of pointer events to 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/virtual/pointerevent/fast/events/constructors/pointer-event-constructor-expected.txt
diff --git a/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/constructors/pointer-event-constructor-expected.txt b/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/constructors/pointer-event-constructor-expected.txt
index f7482fc7c37caaf832747b72d29608b828708d2e..2e6546215166f982595bf8e9dc2626526908afce 100644
--- a/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/constructors/pointer-event-constructor-expected.txt
+++ b/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/constructors/pointer-event-constructor-expected.txt
@@ -71,7 +71,7 @@ PASS new PointerEvent('eventType', { tiltY: {abc:1} }).tiltY is 0
PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0
PASS new PointerEvent('eventType', { tiltY: {valueOf: function () { return 123; }} }).tiltY is 123
-- no init --
-PASS new PointerEvent('eventType').width is 0
+PASS new PointerEvent('eventType').width is 1
-- init with valid float/double values --
PASS new PointerEvent('eventType', { width: 123 }).width is 123
PASS new PointerEvent('eventType', { width: -123 }).width is -123
@@ -84,7 +84,7 @@ PASS new PointerEvent('eventType', { width: '123abc' }).width threw exception Ty
PASS new PointerEvent('eventType', { width: 'dummy' }).width threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non-finite..
PASS new PointerEvent('eventType', { width: NaN }).width threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non-finite..
PASS new PointerEvent('eventType', { width: null }).width is 0
-PASS new PointerEvent('eventType', { width: undefined }).width is 0
+PASS new PointerEvent('eventType', { width: undefined }).width is 1
PASS new PointerEvent('eventType', { width: [] }).width is 0
PASS new PointerEvent('eventType', { width: [12] }).width is 12
PASS new PointerEvent('eventType', { width: [12, 34] }).width threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non-finite..
@@ -93,7 +93,7 @@ PASS new PointerEvent('eventType', { width: {abc:1} }).width threw exception Typ
PASS new PointerEvent('eventType', { width: {} }).width threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non-finite..
PASS new PointerEvent('eventType', { width: {valueOf: function () { return 123; }} }).width is 123
-- no init --
-PASS new PointerEvent('eventType').height is 0
+PASS new PointerEvent('eventType').height is 1
-- init with valid float/double values --
PASS new PointerEvent('eventType', { height: 123 }).height is 123
PASS new PointerEvent('eventType', { height: -123 }).height is -123
@@ -106,7 +106,7 @@ PASS new PointerEvent('eventType', { height: '123abc' }).height threw exception
PASS new PointerEvent('eventType', { height: 'dummy' }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non-finite..
PASS new PointerEvent('eventType', { height: NaN }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non-finite..
PASS new PointerEvent('eventType', { height: null }).height is 0
-PASS new PointerEvent('eventType', { height: undefined }).height is 0
+PASS new PointerEvent('eventType', { height: undefined }).height is 1
PASS new PointerEvent('eventType', { height: [] }).height is 0
PASS new PointerEvent('eventType', { height: [12] }).height is 12
PASS new PointerEvent('eventType', { height: [12, 34] }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non-finite..

Powered by Google App Engine
This is Rietveld 408576698