From c10d097b3101503073d7aaa9490492620b765040 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 25 Jul 2018 17:56:59 +0000 Subject: [PATCH] Bug 1477262 [wpt PR 12093] - Simplify the ambient-light IDL test, a=testonly Automatic update from web-platform-testsSimplify the ambient-light IDL test (#12093) -- wpt-commits: 149b01dd3c58baa247d137de6217c68b535b062a wpt-pr: 12093 --- testing/web-platform/meta/MANIFEST.json | 8 ++-- .../tests/ambient-light/idlharness.https.html | 37 ------------------- .../ambient-light/idlharness.https.window.js | 17 +++++++++ 3 files changed, 21 insertions(+), 41 deletions(-) delete mode 100644 testing/web-platform/tests/ambient-light/idlharness.https.html create mode 100644 testing/web-platform/tests/ambient-light/idlharness.https.window.js diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 2a5d2568a233..fa962ed3d257 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -310771,9 +310771,9 @@ {} ] ], - "ambient-light/idlharness.https.html": [ + "ambient-light/idlharness.https.window.js": [ [ - "/ambient-light/idlharness.https.html", + "/ambient-light/idlharness.https.window.html", {} ] ], @@ -417210,8 +417210,8 @@ "a1f6a1ae10eeaccc4288d31a9a1c1584cfbafb22", "support" ], - "ambient-light/idlharness.https.html": [ - "0b3417b7e88f77777d124793e2179eac0e5e5b4d", + "ambient-light/idlharness.https.window.js": [ + "10e42151ea1345b66c0daa273ffd65ffe85ac3f1", "testharness" ], "animation-worklet/META.yml": [ diff --git a/testing/web-platform/tests/ambient-light/idlharness.https.html b/testing/web-platform/tests/ambient-light/idlharness.https.html deleted file mode 100644 index 962a8f7519fa..000000000000 --- a/testing/web-platform/tests/ambient-light/idlharness.https.html +++ /dev/null @@ -1,37 +0,0 @@ - - -Ambient Light Sensor IDL tests - - - - - - - - diff --git a/testing/web-platform/tests/ambient-light/idlharness.https.window.js b/testing/web-platform/tests/ambient-light/idlharness.https.window.js new file mode 100644 index 000000000000..ea99fc1fc8a7 --- /dev/null +++ b/testing/web-platform/tests/ambient-light/idlharness.https.window.js @@ -0,0 +1,17 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://w3c.github.io/ambient-light/ + +'use strict'; + +idl_test( + ['ambient-light'], + ['generic-sensor', 'dom'], + idl_array => { + idl_array.add_objects({ + AmbientLightSensor: ['new AmbientLightSensor()'] + }); + }, + 'Test IDL implementation of Ambient Light Sensor' +);