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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/constructors/pointer-event-constructor-expected.txt

Issue 2406263003: Make PointerEvent coordinates fractional for touch (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 This tests the constructor for the PointerEvent DOM class. 1 This tests the constructor for the PointerEvent DOM class.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 --- tests for intrinsic attributes --- 6 --- tests for intrinsic attributes plus screen & client coordinates ---
7 -- no init -- 7 -- no init --
8 PASS new PointerEvent('eventType').pointerId is 0 8 PASS new PointerEvent('eventType').pointerId is 0
9 -- init with valid long values -- 9 -- init with valid long values --
10 PASS new PointerEvent('eventType', { pointerId: 0 }).pointerId is 0
10 PASS new PointerEvent('eventType', { pointerId: 123 }).pointerId is 123 11 PASS new PointerEvent('eventType', { pointerId: 123 }).pointerId is 123
11 PASS new PointerEvent('eventType', { pointerId: -123 }).pointerId is -123 12 PASS new PointerEvent('eventType', { pointerId: -123 }).pointerId is -123
12 PASS new PointerEvent('eventType', { pointerId: 2147483647 }).pointerId is 21474 83647 13 PASS new PointerEvent('eventType', { pointerId: 2147483647 }).pointerId is 21474 83647
13 PASS new PointerEvent('eventType', { pointerId: -2147483648 }).pointerId is -214 7483648 14 PASS new PointerEvent('eventType', { pointerId: -2147483648 }).pointerId is -214 7483648
14 -- init with non-long values -- 15 -- init with non-long values --
15 PASS new PointerEvent('eventType', { pointerId: 18446744073709551615 }).pointerI d is 0 16 PASS new PointerEvent('eventType', { pointerId: 18446744073709551615 }).pointerI d is 0
16 PASS new PointerEvent('eventType', {pointerId: 123.45 }).pointerId is 123 17 PASS new PointerEvent('eventType', {pointerId: 123.45 }).pointerId is 123
17 PASS new PointerEvent('eventType', { pointerId: '123abc' }).pointerId is 0 18 PASS new PointerEvent('eventType', { pointerId: '123abc' }).pointerId is 0
18 PASS new PointerEvent('eventType', { pointerId: 'dummy' }).pointerId is 0 19 PASS new PointerEvent('eventType', { pointerId: 'dummy' }).pointerId is 0
19 PASS new PointerEvent('eventType', { pointerId: NaN }).pointerId is 0 20 PASS new PointerEvent('eventType', { pointerId: NaN }).pointerId is 0
20 PASS new PointerEvent('eventType', { pointerId: null }).pointerId is 0 21 PASS new PointerEvent('eventType', { pointerId: null }).pointerId is 0
21 PASS new PointerEvent('eventType', { pointerId: undefined }).pointerId is 0 22 PASS new PointerEvent('eventType', { pointerId: undefined }).pointerId is 0
22 PASS new PointerEvent('eventType', { pointerId: [] }).pointerId is 0 23 PASS new PointerEvent('eventType', { pointerId: [] }).pointerId is 0
23 PASS new PointerEvent('eventType', { pointerId: [12] }).pointerId is 12 24 PASS new PointerEvent('eventType', { pointerId: [12] }).pointerId is 12
24 PASS new PointerEvent('eventType', { pointerId: [12, 34] }).pointerId is 0 25 PASS new PointerEvent('eventType', { pointerId: [12, 34] }).pointerId is 0
25 PASS new PointerEvent('eventType', { pointerId: {} }).pointerId is 0 26 PASS new PointerEvent('eventType', { pointerId: {} }).pointerId is 0
26 PASS new PointerEvent('eventType', { pointerId: {abc:1} }).pointerId is 0 27 PASS new PointerEvent('eventType', { pointerId: {abc:1} }).pointerId is 0
27 PASS new PointerEvent('eventType', { pointerId: {} }).pointerId is 0 28 PASS new PointerEvent('eventType', { pointerId: {} }).pointerId is 0
28 PASS new PointerEvent('eventType', { pointerId: {valueOf: function () { return 1 23; }} }).pointerId is 123 29 PASS new PointerEvent('eventType', { pointerId: {valueOf: function () { return 1 23; }} }).pointerId is 123
29 -- no init -- 30 -- no init --
30 PASS new PointerEvent('eventType').tiltX is 0 31 PASS new PointerEvent('eventType').tiltX is 0
31 -- init with valid long values -- 32 -- init with valid long values --
33 PASS new PointerEvent('eventType', { tiltX: 0 }).tiltX is 0
32 PASS new PointerEvent('eventType', { tiltX: 123 }).tiltX is 123 34 PASS new PointerEvent('eventType', { tiltX: 123 }).tiltX is 123
33 PASS new PointerEvent('eventType', { tiltX: -123 }).tiltX is -123 35 PASS new PointerEvent('eventType', { tiltX: -123 }).tiltX is -123
34 PASS new PointerEvent('eventType', { tiltX: 2147483647 }).tiltX is 2147483647 36 PASS new PointerEvent('eventType', { tiltX: 2147483647 }).tiltX is 2147483647
35 PASS new PointerEvent('eventType', { tiltX: -2147483648 }).tiltX is -2147483648 37 PASS new PointerEvent('eventType', { tiltX: -2147483648 }).tiltX is -2147483648
36 -- init with non-long values -- 38 -- init with non-long values --
37 PASS new PointerEvent('eventType', { tiltX: 18446744073709551615 }).tiltX is 0 39 PASS new PointerEvent('eventType', { tiltX: 18446744073709551615 }).tiltX is 0
38 PASS new PointerEvent('eventType', {tiltX: 123.45 }).tiltX is 123 40 PASS new PointerEvent('eventType', {tiltX: 123.45 }).tiltX is 123
39 PASS new PointerEvent('eventType', { tiltX: '123abc' }).tiltX is 0 41 PASS new PointerEvent('eventType', { tiltX: '123abc' }).tiltX is 0
40 PASS new PointerEvent('eventType', { tiltX: 'dummy' }).tiltX is 0 42 PASS new PointerEvent('eventType', { tiltX: 'dummy' }).tiltX is 0
41 PASS new PointerEvent('eventType', { tiltX: NaN }).tiltX is 0 43 PASS new PointerEvent('eventType', { tiltX: NaN }).tiltX is 0
42 PASS new PointerEvent('eventType', { tiltX: null }).tiltX is 0 44 PASS new PointerEvent('eventType', { tiltX: null }).tiltX is 0
43 PASS new PointerEvent('eventType', { tiltX: undefined }).tiltX is 0 45 PASS new PointerEvent('eventType', { tiltX: undefined }).tiltX is 0
44 PASS new PointerEvent('eventType', { tiltX: [] }).tiltX is 0 46 PASS new PointerEvent('eventType', { tiltX: [] }).tiltX is 0
45 PASS new PointerEvent('eventType', { tiltX: [12] }).tiltX is 12 47 PASS new PointerEvent('eventType', { tiltX: [12] }).tiltX is 12
46 PASS new PointerEvent('eventType', { tiltX: [12, 34] }).tiltX is 0 48 PASS new PointerEvent('eventType', { tiltX: [12, 34] }).tiltX is 0
47 PASS new PointerEvent('eventType', { tiltX: {} }).tiltX is 0 49 PASS new PointerEvent('eventType', { tiltX: {} }).tiltX is 0
48 PASS new PointerEvent('eventType', { tiltX: {abc:1} }).tiltX is 0 50 PASS new PointerEvent('eventType', { tiltX: {abc:1} }).tiltX is 0
49 PASS new PointerEvent('eventType', { tiltX: {} }).tiltX is 0 51 PASS new PointerEvent('eventType', { tiltX: {} }).tiltX is 0
50 PASS new PointerEvent('eventType', { tiltX: {valueOf: function () { return 123; }} }).tiltX is 123 52 PASS new PointerEvent('eventType', { tiltX: {valueOf: function () { return 123; }} }).tiltX is 123
51 -- no init -- 53 -- no init --
52 PASS new PointerEvent('eventType').tiltY is 0 54 PASS new PointerEvent('eventType').tiltY is 0
53 -- init with valid long values -- 55 -- init with valid long values --
56 PASS new PointerEvent('eventType', { tiltY: 0 }).tiltY is 0
54 PASS new PointerEvent('eventType', { tiltY: 123 }).tiltY is 123 57 PASS new PointerEvent('eventType', { tiltY: 123 }).tiltY is 123
55 PASS new PointerEvent('eventType', { tiltY: -123 }).tiltY is -123 58 PASS new PointerEvent('eventType', { tiltY: -123 }).tiltY is -123
56 PASS new PointerEvent('eventType', { tiltY: 2147483647 }).tiltY is 2147483647 59 PASS new PointerEvent('eventType', { tiltY: 2147483647 }).tiltY is 2147483647
57 PASS new PointerEvent('eventType', { tiltY: -2147483648 }).tiltY is -2147483648 60 PASS new PointerEvent('eventType', { tiltY: -2147483648 }).tiltY is -2147483648
58 -- init with non-long values -- 61 -- init with non-long values --
59 PASS new PointerEvent('eventType', { tiltY: 18446744073709551615 }).tiltY is 0 62 PASS new PointerEvent('eventType', { tiltY: 18446744073709551615 }).tiltY is 0
60 PASS new PointerEvent('eventType', {tiltY: 123.45 }).tiltY is 123 63 PASS new PointerEvent('eventType', {tiltY: 123.45 }).tiltY is 123
61 PASS new PointerEvent('eventType', { tiltY: '123abc' }).tiltY is 0 64 PASS new PointerEvent('eventType', { tiltY: '123abc' }).tiltY is 0
62 PASS new PointerEvent('eventType', { tiltY: 'dummy' }).tiltY is 0 65 PASS new PointerEvent('eventType', { tiltY: 'dummy' }).tiltY is 0
63 PASS new PointerEvent('eventType', { tiltY: NaN }).tiltY is 0 66 PASS new PointerEvent('eventType', { tiltY: NaN }).tiltY is 0
64 PASS new PointerEvent('eventType', { tiltY: null }).tiltY is 0 67 PASS new PointerEvent('eventType', { tiltY: null }).tiltY is 0
65 PASS new PointerEvent('eventType', { tiltY: undefined }).tiltY is 0 68 PASS new PointerEvent('eventType', { tiltY: undefined }).tiltY is 0
66 PASS new PointerEvent('eventType', { tiltY: [] }).tiltY is 0 69 PASS new PointerEvent('eventType', { tiltY: [] }).tiltY is 0
67 PASS new PointerEvent('eventType', { tiltY: [12] }).tiltY is 12 70 PASS new PointerEvent('eventType', { tiltY: [12] }).tiltY is 12
68 PASS new PointerEvent('eventType', { tiltY: [12, 34] }).tiltY is 0 71 PASS new PointerEvent('eventType', { tiltY: [12, 34] }).tiltY is 0
69 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0 72 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0
70 PASS new PointerEvent('eventType', { tiltY: {abc:1} }).tiltY is 0 73 PASS new PointerEvent('eventType', { tiltY: {abc:1} }).tiltY is 0
71 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0 74 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0
72 PASS new PointerEvent('eventType', { tiltY: {valueOf: function () { return 123; }} }).tiltY is 123 75 PASS new PointerEvent('eventType', { tiltY: {valueOf: function () { return 123; }} }).tiltY is 123
73 -- no init -- 76 -- no init --
74 PASS new PointerEvent('eventType').width is 1 77 PASS new PointerEvent('eventType').width is 1
75 -- init with valid float/double values -- 78 -- init with valid float/double values --
79 PASS new PointerEvent('eventType', { width: 0 }).width is 0
76 PASS new PointerEvent('eventType', { width: 123 }).width is 123 80 PASS new PointerEvent('eventType', { width: 123 }).width is 123
77 PASS new PointerEvent('eventType', { width: -123 }).width is -123 81 PASS new PointerEvent('eventType', { width: -123 }).width is -123
78 PASS new PointerEvent('eventType', { width: 123.45 }).width is within 0.00001 of 123.45 82 PASS new PointerEvent('eventType', { width: 123.45 }).width is within 0.00001 of 123.45
79 PASS new PointerEvent('eventType', { width: -123.45 }).width is within 0.00001 o f -123.45 83 PASS new PointerEvent('eventType', { width: -123.45 }).width is within 0.00001 o f -123.45
80 PASS new PointerEvent('eventType', { width: 1.23e5 }).width is within 0.00001 of 123000 84 PASS new PointerEvent('eventType', { width: 1.23e5 }).width is within 0.00001 of 123000
81 PASS new PointerEvent('eventType', { width: -1.2e-3 }).width is within 0.00001 o f -0.0012 85 PASS new PointerEvent('eventType', { width: -1.2e-3 }).width is within 0.00001 o f -0.0012
86 PASS new PointerEvent('eventType', { width: 16777215 }).width is 16777215
87 PASS new PointerEvent('eventType', { width: -16777216 }).width is -16777216
82 -- init with non-float/double values -- 88 -- init with non-float/double values --
83 PASS new PointerEvent('eventType', { width: '123abc' }).width threw exception Ty peError: Failed to construct 'PointerEvent': The provided double value is non-fi nite.. 89 PASS new PointerEvent('eventType', { width: '123abc' }).width threw exception Ty peError: Failed to construct 'PointerEvent': The provided double value is non-fi nite..
84 PASS new PointerEvent('eventType', { width: 'dummy' }).width threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite.. 90 PASS new PointerEvent('eventType', { width: 'dummy' }).width threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
85 PASS new PointerEvent('eventType', { width: NaN }).width threw exception TypeErr or: Failed to construct 'PointerEvent': The provided double value is non-finite. . 91 PASS new PointerEvent('eventType', { width: NaN }).width threw exception TypeErr or: Failed to construct 'PointerEvent': The provided double value is non-finite. .
86 PASS new PointerEvent('eventType', { width: null }).width is 0 92 PASS new PointerEvent('eventType', { width: null }).width is 0
87 PASS new PointerEvent('eventType', { width: undefined }).width is 1 93 PASS new PointerEvent('eventType', { width: undefined }).width is 1
88 PASS new PointerEvent('eventType', { width: [] }).width is 0 94 PASS new PointerEvent('eventType', { width: [] }).width is 0
89 PASS new PointerEvent('eventType', { width: [12] }).width is 12 95 PASS new PointerEvent('eventType', { width: [12] }).width is 12
90 PASS new PointerEvent('eventType', { width: [12, 34] }).width threw exception Ty peError: Failed to construct 'PointerEvent': The provided double value is non-fi nite.. 96 PASS new PointerEvent('eventType', { width: [12, 34] }).width threw exception Ty peError: Failed to construct 'PointerEvent': The provided double value is non-fi nite..
91 PASS new PointerEvent('eventType', { width: {} }).width threw exception TypeErro r: Failed to construct 'PointerEvent': The provided double value is non-finite.. 97 PASS new PointerEvent('eventType', { width: {} }).width threw exception TypeErro r: Failed to construct 'PointerEvent': The provided double value is non-finite..
92 PASS new PointerEvent('eventType', { width: {abc:1} }).width threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite.. 98 PASS new PointerEvent('eventType', { width: {abc:1} }).width threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
93 PASS new PointerEvent('eventType', { width: {} }).width threw exception TypeErro r: Failed to construct 'PointerEvent': The provided double value is non-finite.. 99 PASS new PointerEvent('eventType', { width: {} }).width threw exception TypeErro r: Failed to construct 'PointerEvent': The provided double value is non-finite..
94 PASS new PointerEvent('eventType', { width: {valueOf: function () { return 123; }} }).width is 123 100 PASS new PointerEvent('eventType', { width: {valueOf: function () { return 123; }} }).width is 123
95 -- no init -- 101 -- no init --
96 PASS new PointerEvent('eventType').height is 1 102 PASS new PointerEvent('eventType').height is 1
97 -- init with valid float/double values -- 103 -- init with valid float/double values --
104 PASS new PointerEvent('eventType', { height: 0 }).height is 0
98 PASS new PointerEvent('eventType', { height: 123 }).height is 123 105 PASS new PointerEvent('eventType', { height: 123 }).height is 123
99 PASS new PointerEvent('eventType', { height: -123 }).height is -123 106 PASS new PointerEvent('eventType', { height: -123 }).height is -123
100 PASS new PointerEvent('eventType', { height: 123.45 }).height is within 0.00001 of 123.45 107 PASS new PointerEvent('eventType', { height: 123.45 }).height is within 0.00001 of 123.45
101 PASS new PointerEvent('eventType', { height: -123.45 }).height is within 0.00001 of -123.45 108 PASS new PointerEvent('eventType', { height: -123.45 }).height is within 0.00001 of -123.45
102 PASS new PointerEvent('eventType', { height: 1.23e5 }).height is within 0.00001 of 123000 109 PASS new PointerEvent('eventType', { height: 1.23e5 }).height is within 0.00001 of 123000
103 PASS new PointerEvent('eventType', { height: -1.2e-3 }).height is within 0.00001 of -0.0012 110 PASS new PointerEvent('eventType', { height: -1.2e-3 }).height is within 0.00001 of -0.0012
111 PASS new PointerEvent('eventType', { height: 16777215 }).height is 16777215
112 PASS new PointerEvent('eventType', { height: -16777216 }).height is -16777216
104 -- init with non-float/double values -- 113 -- init with non-float/double values --
105 PASS new PointerEvent('eventType', { height: '123abc' }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non- finite.. 114 PASS new PointerEvent('eventType', { height: '123abc' }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non- finite..
106 PASS new PointerEvent('eventType', { height: 'dummy' }).height threw exception T ypeError: Failed to construct 'PointerEvent': The provided double value is non-f inite.. 115 PASS new PointerEvent('eventType', { height: 'dummy' }).height threw exception T ypeError: Failed to construct 'PointerEvent': The provided double value is non-f inite..
107 PASS new PointerEvent('eventType', { height: NaN }).height threw exception TypeE rror: Failed to construct 'PointerEvent': The provided double value is non-finit e.. 116 PASS new PointerEvent('eventType', { height: NaN }).height threw exception TypeE rror: Failed to construct 'PointerEvent': The provided double value is non-finit e..
108 PASS new PointerEvent('eventType', { height: null }).height is 0 117 PASS new PointerEvent('eventType', { height: null }).height is 0
109 PASS new PointerEvent('eventType', { height: undefined }).height is 1 118 PASS new PointerEvent('eventType', { height: undefined }).height is 1
110 PASS new PointerEvent('eventType', { height: [] }).height is 0 119 PASS new PointerEvent('eventType', { height: [] }).height is 0
111 PASS new PointerEvent('eventType', { height: [12] }).height is 12 120 PASS new PointerEvent('eventType', { height: [12] }).height is 12
112 PASS new PointerEvent('eventType', { height: [12, 34] }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non- finite.. 121 PASS new PointerEvent('eventType', { height: [12, 34] }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non- finite..
113 PASS new PointerEvent('eventType', { height: {} }).height threw exception TypeEr ror: Failed to construct 'PointerEvent': The provided double value is non-finite .. 122 PASS new PointerEvent('eventType', { height: {} }).height threw exception TypeEr ror: Failed to construct 'PointerEvent': The provided double value is non-finite ..
114 PASS new PointerEvent('eventType', { height: {abc:1} }).height threw exception T ypeError: Failed to construct 'PointerEvent': The provided double value is non-f inite.. 123 PASS new PointerEvent('eventType', { height: {abc:1} }).height threw exception T ypeError: Failed to construct 'PointerEvent': The provided double value is non-f inite..
115 PASS new PointerEvent('eventType', { height: {} }).height threw exception TypeEr ror: Failed to construct 'PointerEvent': The provided double value is non-finite .. 124 PASS new PointerEvent('eventType', { height: {} }).height threw exception TypeEr ror: Failed to construct 'PointerEvent': The provided double value is non-finite ..
116 PASS new PointerEvent('eventType', { height: {valueOf: function () { return 123; }} }).height is 123 125 PASS new PointerEvent('eventType', { height: {valueOf: function () { return 123; }} }).height is 123
117 -- no init -- 126 -- no init --
118 PASS new PointerEvent('eventType').pressure is 0 127 PASS new PointerEvent('eventType').pressure is 0
119 -- init with valid float/double values -- 128 -- init with valid float/double values --
129 PASS new PointerEvent('eventType', { pressure: 0 }).pressure is 0
120 PASS new PointerEvent('eventType', { pressure: 123 }).pressure is 123 130 PASS new PointerEvent('eventType', { pressure: 123 }).pressure is 123
121 PASS new PointerEvent('eventType', { pressure: -123 }).pressure is -123 131 PASS new PointerEvent('eventType', { pressure: -123 }).pressure is -123
122 PASS new PointerEvent('eventType', { pressure: 123.45 }).pressure is within 0.00 001 of 123.45 132 PASS new PointerEvent('eventType', { pressure: 123.45 }).pressure is within 0.00 001 of 123.45
123 PASS new PointerEvent('eventType', { pressure: -123.45 }).pressure is within 0.0 0001 of -123.45 133 PASS new PointerEvent('eventType', { pressure: -123.45 }).pressure is within 0.0 0001 of -123.45
124 PASS new PointerEvent('eventType', { pressure: 1.23e5 }).pressure is within 0.00 001 of 123000 134 PASS new PointerEvent('eventType', { pressure: 1.23e5 }).pressure is within 0.00 001 of 123000
125 PASS new PointerEvent('eventType', { pressure: -1.2e-3 }).pressure is within 0.0 0001 of -0.0012 135 PASS new PointerEvent('eventType', { pressure: -1.2e-3 }).pressure is within 0.0 0001 of -0.0012
136 PASS new PointerEvent('eventType', { pressure: 16777215 }).pressure is 16777215
137 PASS new PointerEvent('eventType', { pressure: -16777216 }).pressure is -1677721 6
126 -- init with non-float/double values -- 138 -- init with non-float/double values --
127 PASS new PointerEvent('eventType', { pressure: '123abc' }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite.. 139 PASS new PointerEvent('eventType', { pressure: '123abc' }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite..
128 PASS new PointerEvent('eventType', { pressure: 'dummy' }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite.. 140 PASS new PointerEvent('eventType', { pressure: 'dummy' }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite..
129 PASS new PointerEvent('eventType', { pressure: NaN }).pressure threw exception T ypeError: Failed to construct 'PointerEvent': The provided float value is non-fi nite.. 141 PASS new PointerEvent('eventType', { pressure: NaN }).pressure threw exception T ypeError: Failed to construct 'PointerEvent': The provided float value is non-fi nite..
130 PASS new PointerEvent('eventType', { pressure: null }).pressure is 0 142 PASS new PointerEvent('eventType', { pressure: null }).pressure is 0
131 PASS new PointerEvent('eventType', { pressure: undefined }).pressure is 0 143 PASS new PointerEvent('eventType', { pressure: undefined }).pressure is 0
132 PASS new PointerEvent('eventType', { pressure: [] }).pressure is 0 144 PASS new PointerEvent('eventType', { pressure: [] }).pressure is 0
133 PASS new PointerEvent('eventType', { pressure: [12] }).pressure is 12 145 PASS new PointerEvent('eventType', { pressure: [12] }).pressure is 12
134 PASS new PointerEvent('eventType', { pressure: [12, 34] }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite.. 146 PASS new PointerEvent('eventType', { pressure: [12, 34] }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite..
135 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite.. 147 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite..
136 PASS new PointerEvent('eventType', { pressure: {abc:1} }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite.. 148 PASS new PointerEvent('eventType', { pressure: {abc:1} }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite..
137 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite.. 149 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite..
138 PASS new PointerEvent('eventType', { pressure: {valueOf: function () { return 12 3; }} }).pressure is 123 150 PASS new PointerEvent('eventType', { pressure: {valueOf: function () { return 12 3; }} }).pressure is 123
139 --- tests for inherited attributes --- 151 -- no init --
152 PASS new PointerEvent('eventType').screenX is 0
153 -- init with valid float/double values --
154 PASS new PointerEvent('eventType', { screenX: 0 }).screenX is 0
155 PASS new PointerEvent('eventType', { screenX: 123 }).screenX is 123
156 PASS new PointerEvent('eventType', { screenX: -123 }).screenX is -123
157 PASS new PointerEvent('eventType', { screenX: 123.45 }).screenX is within 0.0000 1 of 123.45
158 PASS new PointerEvent('eventType', { screenX: -123.45 }).screenX is within 0.000 01 of -123.45
159 PASS new PointerEvent('eventType', { screenX: 1.23e5 }).screenX is within 0.0000 1 of 123000
160 PASS new PointerEvent('eventType', { screenX: -1.2e-3 }).screenX is within 0.000 01 of -0.0012
161 PASS new PointerEvent('eventType', { screenX: 16777215 }).screenX is 16777215
162 PASS new PointerEvent('eventType', { screenX: -16777216 }).screenX is -16777216
163 -- init with non-float/double values --
164 PASS new PointerEvent('eventType', { screenX: '123abc' }).screenX threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
165 PASS new PointerEvent('eventType', { screenX: 'dummy' }).screenX threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
166 PASS new PointerEvent('eventType', { screenX: NaN }).screenX threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
167 PASS new PointerEvent('eventType', { screenX: null }).screenX is 0
168 PASS new PointerEvent('eventType', { screenX: undefined }).screenX is 0
169 PASS new PointerEvent('eventType', { screenX: [] }).screenX is 0
170 PASS new PointerEvent('eventType', { screenX: [12] }).screenX is 12
171 PASS new PointerEvent('eventType', { screenX: [12, 34] }).screenX threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
172 PASS new PointerEvent('eventType', { screenX: {} }).screenX threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
173 PASS new PointerEvent('eventType', { screenX: {abc:1} }).screenX threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
174 PASS new PointerEvent('eventType', { screenX: {} }).screenX threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
175 PASS new PointerEvent('eventType', { screenX: {valueOf: function () { return 123 ; }} }).screenX is 123
176 -- no init --
177 PASS new PointerEvent('eventType').screenY is 0
178 -- init with valid float/double values --
179 PASS new PointerEvent('eventType', { screenY: 0 }).screenY is 0
180 PASS new PointerEvent('eventType', { screenY: 123 }).screenY is 123
181 PASS new PointerEvent('eventType', { screenY: -123 }).screenY is -123
182 PASS new PointerEvent('eventType', { screenY: 123.45 }).screenY is within 0.0000 1 of 123.45
183 PASS new PointerEvent('eventType', { screenY: -123.45 }).screenY is within 0.000 01 of -123.45
184 PASS new PointerEvent('eventType', { screenY: 1.23e5 }).screenY is within 0.0000 1 of 123000
185 PASS new PointerEvent('eventType', { screenY: -1.2e-3 }).screenY is within 0.000 01 of -0.0012
186 PASS new PointerEvent('eventType', { screenY: 16777215 }).screenY is 16777215
187 PASS new PointerEvent('eventType', { screenY: -16777216 }).screenY is -16777216
188 -- init with non-float/double values --
189 PASS new PointerEvent('eventType', { screenY: '123abc' }).screenY threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
190 PASS new PointerEvent('eventType', { screenY: 'dummy' }).screenY threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
191 PASS new PointerEvent('eventType', { screenY: NaN }).screenY threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
192 PASS new PointerEvent('eventType', { screenY: null }).screenY is 0
193 PASS new PointerEvent('eventType', { screenY: undefined }).screenY is 0
194 PASS new PointerEvent('eventType', { screenY: [] }).screenY is 0
195 PASS new PointerEvent('eventType', { screenY: [12] }).screenY is 12
196 PASS new PointerEvent('eventType', { screenY: [12, 34] }).screenY threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
197 PASS new PointerEvent('eventType', { screenY: {} }).screenY threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
198 PASS new PointerEvent('eventType', { screenY: {abc:1} }).screenY threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
199 PASS new PointerEvent('eventType', { screenY: {} }).screenY threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
200 PASS new PointerEvent('eventType', { screenY: {valueOf: function () { return 123 ; }} }).screenY is 123
201 -- no init --
202 PASS new PointerEvent('eventType').clientX is 0
203 -- init with valid float/double values --
204 PASS new PointerEvent('eventType', { clientX: 0 }).clientX is 0
205 PASS new PointerEvent('eventType', { clientX: 123 }).clientX is 123
206 PASS new PointerEvent('eventType', { clientX: -123 }).clientX is -123
207 PASS new PointerEvent('eventType', { clientX: 123.45 }).clientX is within 0.0000 1 of 123.45
208 PASS new PointerEvent('eventType', { clientX: -123.45 }).clientX is within 0.000 01 of -123.45
209 PASS new PointerEvent('eventType', { clientX: 1.23e5 }).clientX is within 0.0000 1 of 123000
210 PASS new PointerEvent('eventType', { clientX: -1.2e-3 }).clientX is within 0.000 01 of -0.0012
211 PASS new PointerEvent('eventType', { clientX: 16777215 }).clientX is 16777215
212 PASS new PointerEvent('eventType', { clientX: -16777216 }).clientX is -16777216
213 -- init with non-float/double values --
214 PASS new PointerEvent('eventType', { clientX: '123abc' }).clientX threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
215 PASS new PointerEvent('eventType', { clientX: 'dummy' }).clientX threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
216 PASS new PointerEvent('eventType', { clientX: NaN }).clientX threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
217 PASS new PointerEvent('eventType', { clientX: null }).clientX is 0
218 PASS new PointerEvent('eventType', { clientX: undefined }).clientX is 0
219 PASS new PointerEvent('eventType', { clientX: [] }).clientX is 0
220 PASS new PointerEvent('eventType', { clientX: [12] }).clientX is 12
221 PASS new PointerEvent('eventType', { clientX: [12, 34] }).clientX threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
222 PASS new PointerEvent('eventType', { clientX: {} }).clientX threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
223 PASS new PointerEvent('eventType', { clientX: {abc:1} }).clientX threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
224 PASS new PointerEvent('eventType', { clientX: {} }).clientX threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
225 PASS new PointerEvent('eventType', { clientX: {valueOf: function () { return 123 ; }} }).clientX is 123
226 -- no init --
227 PASS new PointerEvent('eventType').clientY is 0
228 -- init with valid float/double values --
229 PASS new PointerEvent('eventType', { clientY: 0 }).clientY is 0
230 PASS new PointerEvent('eventType', { clientY: 123 }).clientY is 123
231 PASS new PointerEvent('eventType', { clientY: -123 }).clientY is -123
232 PASS new PointerEvent('eventType', { clientY: 123.45 }).clientY is within 0.0000 1 of 123.45
233 PASS new PointerEvent('eventType', { clientY: -123.45 }).clientY is within 0.000 01 of -123.45
234 PASS new PointerEvent('eventType', { clientY: 1.23e5 }).clientY is within 0.0000 1 of 123000
235 PASS new PointerEvent('eventType', { clientY: -1.2e-3 }).clientY is within 0.000 01 of -0.0012
236 PASS new PointerEvent('eventType', { clientY: 16777215 }).clientY is 16777215
237 PASS new PointerEvent('eventType', { clientY: -16777216 }).clientY is -16777216
238 -- init with non-float/double values --
239 PASS new PointerEvent('eventType', { clientY: '123abc' }).clientY threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
240 PASS new PointerEvent('eventType', { clientY: 'dummy' }).clientY threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
241 PASS new PointerEvent('eventType', { clientY: NaN }).clientY threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
242 PASS new PointerEvent('eventType', { clientY: null }).clientY is 0
243 PASS new PointerEvent('eventType', { clientY: undefined }).clientY is 0
244 PASS new PointerEvent('eventType', { clientY: [] }).clientY is 0
245 PASS new PointerEvent('eventType', { clientY: [12] }).clientY is 12
246 PASS new PointerEvent('eventType', { clientY: [12, 34] }).clientY threw exceptio n TypeError: Failed to construct 'PointerEvent': The provided double value is no n-finite..
247 PASS new PointerEvent('eventType', { clientY: {} }).clientY threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
248 PASS new PointerEvent('eventType', { clientY: {abc:1} }).clientY threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non -finite..
249 PASS new PointerEvent('eventType', { clientY: {} }).clientY threw exception Type Error: Failed to construct 'PointerEvent': The provided double value is non-fini te..
250 PASS new PointerEvent('eventType', { clientY: {valueOf: function () { return 123 ; }} }).clientY is 123
251 --- tests for inherited attributes (other than screen & client coordinates) ---
140 PASS new PointerEvent('eventType').bubbles is false 252 PASS new PointerEvent('eventType').bubbles is false
141 PASS new PointerEvent('eventType').cancelable is false 253 PASS new PointerEvent('eventType').cancelable is false
142 PASS new PointerEvent('eventType').view is null 254 PASS new PointerEvent('eventType').view is null
143 PASS new PointerEvent('eventType').detail is 0 255 PASS new PointerEvent('eventType').detail is 0
144 PASS new PointerEvent('eventType').screenX is 0
145 PASS new PointerEvent('eventType').screenY is 0
146 PASS new PointerEvent('eventType').clientX is 0
147 PASS new PointerEvent('eventType').clientY is 0
148 PASS new PointerEvent('eventType').ctrlKey is false 256 PASS new PointerEvent('eventType').ctrlKey is false
149 PASS new PointerEvent('eventType').shiftKey is false 257 PASS new PointerEvent('eventType').shiftKey is false
150 PASS new PointerEvent('eventType').altKey is false 258 PASS new PointerEvent('eventType').altKey is false
151 PASS new PointerEvent('eventType').metaKey is false 259 PASS new PointerEvent('eventType').metaKey is false
152 PASS new PointerEvent('eventType').button is 0 260 PASS new PointerEvent('eventType').button is 0
153 PASS new PointerEvent('eventType').buttons is 0 261 PASS new PointerEvent('eventType').buttons is 0
154 PASS new PointerEvent('eventType').relatedTarget is null 262 PASS new PointerEvent('eventType').relatedTarget is null
155 PASS successfullyParsed is true 263 PASS successfullyParsed is true
156 264
157 TEST COMPLETE 265 TEST COMPLETE
158 266
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698