| Index: third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_constructor.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_constructor.html b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_constructor.html
|
| index b2a779d1f7385c3381a64e52cfdd2bc0069b8a8d..b8a97d1a6bb7f7b895d16282a1231c335e35f650 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_constructor.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_constructor.html
|
| @@ -33,6 +33,8 @@
|
| var testButton = 0;
|
| var testButtons = 1;
|
| var testPressure = 0.4;
|
| + var testTangentialPressure = 0.5;
|
| + var testTwist = 286;
|
| var testIsPrimary = true;
|
|
|
| on_event(target0, "pointerover", this.step_func(function(event) {
|
| @@ -50,10 +52,12 @@
|
| ["custom clientY", event.clientY, testClientY],
|
| ["custom tiltX", event.tiltX, testTiltX],
|
| ["custom tiltY", event.tiltY, testTiltY],
|
| + ["custom twist", event.twist, testTwist],
|
| ["custom isPrimary", event.isPrimary, testIsPrimary]
|
| ]);
|
| test(function() {
|
| assert_approx_equals(event.pressure, testPressure, 0.00000001, "custom pressure: ");
|
| + assert_approx_equals(event.tangentialPressure, testTangentialPressure, 0.00000001, "custom tangential pressure: ");
|
| }, "custom pressure: ");
|
| }));
|
|
|
| @@ -66,6 +70,8 @@
|
| ["default tiltX", event.tiltX, 0],
|
| ["default tiltY", event.tiltY, 0],
|
| ["default pressure", event.pressure, 0],
|
| + ["default tangentialPressure", event.tangentialPressure, 0],
|
| + ["default twist", event.twist, 0],
|
| ["default isPrimary", event.isPrimary, false]
|
| ]);
|
| }));
|
| @@ -87,6 +93,8 @@
|
| button: testButton,
|
| buttons: testButtons,
|
| pressure: testPressure,
|
| + tangentialPressure: testTangentialPressure,
|
| + twist: testTwist,
|
| isPrimary: testIsPrimary
|
| });
|
| // A PointerEvent created with a PointerEvent constructor must have all its attributes set to the corresponding values provided to the constructor.
|
|
|