Bug 1462175 [wpt PR 11038] - Make deviceorientationabsoluteevent WPT test match spec, a=testonly
authorRobbie McElrath <rmcelrath@chromium.org>
Wed, 06 Jun 2018 15:49:45 +0000
changeset 806580 6a95f950cf63b66df782e579b47e571f48f9f617
parent 806579 c856b89046f25c1fc30e5b611beea370961008d2
child 806581 04e1a9eb6203ff16bd485a9a449c4ac09694ae61
push id112908
push userbmo:gl@mozilla.com
push dateMon, 11 Jun 2018 02:53:29 +0000
reviewerstestonly
bugs1462175, 11038, 774183, 802815, 1062650, 561984
milestone62.0a1
Bug 1462175 [wpt PR 11038] - Make deviceorientationabsoluteevent WPT test match spec, a=testonly Automatic update from web-platform-testsMake deviceorientationabsoluteevent WPT test match spec The deviceorientationabsoluteevent WPT test currently asserts that the 'absolute' property of the deviceorientationabsolute event is false. The spec states that: https://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientationabsolute "The deviceorientationabsolute event is completely analogous to the deviceorientation event, except additional sensors like the magnetometer can be used to provide an absolute orientation. The absolute property must be set to true." This updates the test to assert that absolute is set to true. Bug: 774183, 802815 Change-Id: I3694e2b774aa0e4a8a9f7d0328e2aad8b37775e6 Reviewed-on: https://chromium-review.googlesource.com/1062650 Commit-Queue: Robbie McElrath <rmcelrath@chromium.org> Reviewed-by: Jun Cai <juncai@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#561984} -- wpt-commits: 3a096dac6f25408dfa53d521f9ffb4dc11b49aaf wpt-pr: 11038
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/orientation-event/deviceorientationabsoluteevent.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -590329,17 +590329,17 @@
    "10840492f7ff1b4a45d94e586463c307477ec3ba",
    "support"
   ],
   "orientation-event/devicemotionevent-init.html": [
    "fab191bbebab21f696fefc0ad9e8110b99855eee",
    "testharness"
   ],
   "orientation-event/deviceorientationabsoluteevent.html": [
-   "39b8076ee3dc20b085f06d52441766389155f04b",
+   "8e84a1001482e0c58f402ba3bd66d2ac5cd55c10",
    "testharness"
   ],
   "orientation-event/deviceorientationevent-init.html": [
    "ccd2db5f8266737e2eaf4aa8462b1a51201c42ab",
    "testharness"
   ],
   "orientation-event/free-fall-manual.html": [
    "e291465a89d97156f518e12e1bf65e6ab8091ce7",
--- a/testing/web-platform/tests/orientation-event/deviceorientationabsoluteevent.html
+++ b/testing/web-platform/tests/orientation-event/deviceorientationabsoluteevent.html
@@ -15,16 +15,16 @@
       window.addEventListener("deviceorientationabsolute", function(e) {
         if (!run) {
           run = true;
           t.step(function () {
             assert_equals(e.type, "deviceorientationabsolute", "type is set to \"deviceorientationabsolute\"");
             assert_equals(e.alpha, null, "alpha is set to null");
             assert_equals(e.beta, null, "beta is set to null");
             assert_equals(e.gamma, null, "gamma is set to null");
-            assert_false(e.absolute, "absolute is set to false");
+            assert_true(e.absolute, "absolute is set to true");
           });
           t.done();
         }
       }, false);
     </script>
   </body>
 </html>