Bug 1693598 [wpt PR 27681] - Add pointerevents' properties to gpubenchmarking.PointerActionSequence, a=testonly
authorLan Wei <lanwei@chromium.org>
Fri, 23 Apr 2021 10:16:54 +0000
changeset 577240 93ec388cd51d027b9189d1fbb830f01be59cbf53
parent 577239 1dc0e4b98f82406f2f58efa0999dde969e967c1c
child 577241 29b3c96abe795202a19abb3f4f52ce48c6885902
push id141827
push userwptsync@mozilla.com
push dateSat, 24 Apr 2021 02:11:12 +0000
treeherderautoland@3a7d9d49c316 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1693598, 27681, 1147126, 2683954, 872509
milestone90.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1693598 [wpt PR 27681] - Add pointerevents' properties to gpubenchmarking.PointerActionSequence, a=testonly Automatic update from web-platform-tests Add pointerevents' properties to gpubenchmarking.PointerActionSequence I have added the pointerevents' properties to WebDriver Action API, and some WPT tests. Because gpubenchmarking.PointerActionSequence does not have these properties, these tests are failing on content shell. This CL will add the properties to gpubenchmarking.PointerActionSequence as well. Bug: 1147126 Change-Id: I55d14a342d63461cdfab6a31389a7c0bb9757bbb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2683954 Reviewed-by: David Bokan <bokan@chromium.org> Reviewed-by: Nasko Oskov <nasko@chromium.org> Reviewed-by: Philip J├Ągenstedt <foolip@chromium.org> Reviewed-by: Mustaq Ahmed <mustaq@chromium.org> Commit-Queue: Lan Wei <lanwei@chromium.org> Cr-Commit-Position: refs/heads/master@{#872509} -- wpt-commits: 51639933704c8a87a2ac7d728e84613cbef3c9e0 wpt-pr: 27681
testing/web-platform/tests/infrastructure/testdriver/actions/touchPointerEventProperties.html
--- a/testing/web-platform/tests/infrastructure/testdriver/actions/touchPointerEventProperties.html
+++ b/testing/web-platform/tests/infrastructure/testdriver/actions/touchPointerEventProperties.html
@@ -40,32 +40,32 @@ async_test(t => {
         pointerMoveEvent = e;
     });
   }
 
   let div = document.getElementById("test");
   let actions = new test_driver.Actions()
     .addPointer("touchPointer1", "touch")
     .pointerMove(0, 0, {origin: test})
-    .pointerDown({width:23, height:31, pressure:0.78, tiltX:21, tiltY:-8, twist:355})
-    .pointerMove(15, 0, {origin: test, width:39, height:35, pressure:0.91, tiltX:-19, tiltY:62, twist:345})
+    .pointerDown({width:23, height:31, pressure:0.78})
+    .pointerMove(15, 0, {origin: test, width:39, height:35, pressure:0.91})
     .pointerUp()
     .send()
     .then(t.step_func_done(() => {
       assert_equals(pointerDownEvent.type, "pointerdown");
       assert_equals(pointerDownEvent.pointerType, "touch");
       assert_equals(pointerDownEvent.width, 23);
       assert_equals(pointerDownEvent.height, 31);
       assert_equals(Math.round(pointerDownEvent.pressure * 100) / 100, 0.78);
-      assert_equals(pointerDownEvent.tiltX, 21);
-      assert_equals(pointerDownEvent.tiltY, -8);
-      assert_equals(pointerDownEvent.twist, 355);
+      assert_equals(pointerDownEvent.tiltX, 0);
+      assert_equals(pointerDownEvent.tiltY, 0);
+      assert_equals(pointerDownEvent.twist, 0);
       assert_equals(pointerMoveEvent.type, "pointermove");
       assert_equals(pointerMoveEvent.pointerType, "touch");
       assert_equals(pointerMoveEvent.width, 39);
       assert_equals(pointerMoveEvent.height, 35);
       assert_equals(Math.round(pointerMoveEvent.pressure * 100) / 100, 0.91);
-      assert_equals(pointerMoveEvent.tiltX, -19);
-      assert_equals(pointerMoveEvent.tiltY, 62);
-      assert_equals(pointerMoveEvent.twist, 345);
+      assert_equals(pointerMoveEvent.tiltX, 0);
+      assert_equals(pointerMoveEvent.tiltY, 0);
+      assert_equals(pointerMoveEvent.twist, 0);
   })).catch(e => t.step_func(() => assert_unreached("Actions sequence failed " + e)));
 });
 </script>