diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index a25b38062dc8..7bb8c2b007de 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -365419,9 +365419,9 @@ {} ] ], - "orientation-sensor/idlharness.https.html": [ + "orientation-sensor/idlharness.https.window.js": [ [ - "/orientation-sensor/idlharness.https.html", + "/orientation-sensor/idlharness.https.window.html", {} ] ], @@ -602570,8 +602570,8 @@ "9bf83c64eb5dcf284eb6c45db8ac278ab3c637a2", "testharness" ], - "orientation-sensor/idlharness.https.html": [ - "1f94329cb330a1a904d409a6e158a5fe9f8dd709", + "orientation-sensor/idlharness.https.window.js": [ + "0be5ccc874864dd3f1a0aeb9a79f0ddfe601b30e", "testharness" ], "orientation-sensor/orientation-sensor-tests.js": [ diff --git a/testing/web-platform/tests/orientation-sensor/idlharness.https.html b/testing/web-platform/tests/orientation-sensor/idlharness.https.html deleted file mode 100644 index c87d99f8085a..000000000000 --- a/testing/web-platform/tests/orientation-sensor/idlharness.https.html +++ /dev/null @@ -1,38 +0,0 @@ - - -Orientation Sensor IDL tests - - - - - - - - diff --git a/testing/web-platform/tests/orientation-sensor/idlharness.https.window.js b/testing/web-platform/tests/orientation-sensor/idlharness.https.window.js new file mode 100644 index 000000000000..39217fcc6276 --- /dev/null +++ b/testing/web-platform/tests/orientation-sensor/idlharness.https.window.js @@ -0,0 +1,19 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://w3c.github.io/orientation-sensor/"> + +'use strict'; + +idl_test( + ['orientation-sensor'], + ['generic-sensor', 'dom'], + idl_array => { + idl_array.add_objects({ + AbsoluteOrientationSensor: ['new AbsoluteOrientationSensor();'], + RelativeOrientationSensor: ['new RelativeOrientationSensor();'] + }); + idl_array.prevent_multiple_testing('OrientationSensor'); + }, + 'Test IDL implementation of Orientation Sensor' +);