Bug 1483000 [wpt PR 12433] - Rewrite Vibration API IDL test to use idl_test, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Thu, 16 Aug 2018 09:40:18 +0000
changeset 431998 a6d7d1767f0943f0d78ffc50fb363b44ec73a7f2
parent 431997 1b70c1fa962eb60f045c23e43d16d4cc7009829f
child 431999 439e0e17dc881a2e97b47ab7a3411730201bbda0
push id34456
push usertoros@mozilla.com
push dateThu, 16 Aug 2018 21:33:21 +0000
treeherdermozilla-central@72442cf86f54 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1483000, 12433
milestone63.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 1483000 [wpt PR 12433] - Rewrite Vibration API IDL test to use idl_test, a=testonly Automatic update from web-platform-testsRewrite Vibration API IDL test to use idl_test (#12433) Tests still pass on Chrome and Firefox. -- wpt-commits: b4dea1f59f9d7127102dfcda8801c189793aa4bc wpt-pr: 12433
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/vibration/idl.html
testing/web-platform/tests/vibration/idlharness.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -392867,19 +392867,19 @@
     ]
    ],
    "vibration/api-is-present.html": [
     [
      "/vibration/api-is-present.html",
      {}
     ]
    ],
-   "vibration/idl.html": [
-    [
-     "/vibration/idl.html",
+   "vibration/idlharness.window.js": [
+    [
+     "/vibration/idlharness.window.html",
      {}
     ]
    ],
    "vibration/invalid-values.html": [
     [
      "/vibration/invalid-values.html",
      {}
     ]
@@ -643434,18 +643434,18 @@
   "vibration/cancel-with-empty-array-manual.html": [
    "8e48173e7e924efd52d3179d9d0bd8800c4653c5",
    "manual"
   ],
   "vibration/cancel-with-new-manual.html": [
    "64e6e9b548233809b217c03e2709f7fbf12fdce9",
    "manual"
   ],
-  "vibration/idl.html": [
-   "167090cd67b0169501a6b0b16f8101e8b2b04f84",
+  "vibration/idlharness.window.js": [
+   "fbe14daa6119a8213ca58e2233345af015353a1b",
    "testharness"
   ],
   "vibration/invalid-values.html": [
    "6740a44a8ed98ac76c577636d42010c1c8c27ada",
    "testharness"
   ],
   "vibration/pattern-array-extra-manual.html": [
    "b23323ace2f51e160e8aacd38e619c1f0258661b",
deleted file mode 100644
--- a/testing/web-platform/tests/vibration/idl.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>IDL harness tests for Vibration API</title>
-<body>
-    <h1>Description</h1>
-    <p>
-      This test validates the IDL defined by the Vibration API.
-    </p>
-    <p>
-      This test uses <a href="/resources/idlharness.js">idlharness.js</a>
-    </p>
-<div id="log"></div>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<script src=/resources/WebIDLParser.js></script>
-<script src=/resources/idlharness.js></script>
-<script>
-var idl_array = new IdlArray();
-idl_array.add_untested_idls("interface Navigator {};");
-idl_array.add_idls("partial interface Navigator { boolean vibrate ((unsigned long or sequence<unsigned long>) pattern);};");
-idl_array.add_objects({Navigator: ['navigator']});
-idl_array.test();
-</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/vibration/idlharness.window.js
@@ -0,0 +1,12 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+idl_test(
+  ['vibration'],
+  ['html'],
+  idl_array => {
+    idl_array.add_objects({Navigator: ['navigator']});
+  }
+);