From 82f6466bece9700d42d326fade24d909ab633ae4 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 25 Jul 2018 18:01:32 +0000 Subject: [PATCH] Bug 1477410 [wpt PR 12106] - Simplify the orientation-sensor IDL test, a=testonly Automatic update from web-platform-testsSimplify the orientation-sensor IDL test (#12106) -- wpt-commits: 9d8a0d0446fae393623d6ec32019fc60d94655c4 wpt-pr: 12106 --- testing/web-platform/meta/MANIFEST.json | 8 ++-- .../orientation-sensor/idlharness.https.html | 38 ------------------- .../idlharness.https.window.js | 19 ++++++++++ 3 files changed, 23 insertions(+), 42 deletions(-) delete mode 100644 testing/web-platform/tests/orientation-sensor/idlharness.https.html create mode 100644 testing/web-platform/tests/orientation-sensor/idlharness.https.window.js 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' +);