Backed out changeset dd86cd22879c (bug 1475329) for wpt failures on remote-playback/idlharness.window.html. CLOSED TREE
authorNarcis Beleuzu <nbeleuzu@mozilla.com>
Wed, 25 Jul 2018 07:10:04 +0300
changeset 428203 cf842aeb142495bda46ad3bdc35618274ff9e6e2
parent 428202 1f504e9166c5c8f20a42d32c4b9a395504977c27
child 428204 1de8a73e14cd2ebcadd0fcedd3c43cf0fc5c6733
push id105648
push usernbeleuzu@mozilla.com
push dateWed, 25 Jul 2018 04:10:26 +0000
treeherdermozilla-inbound@cf842aeb1424 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1475329
milestone63.0a1
backs outdd86cd22879c0682fb5ebbb8efd2f3f87dae01ab
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
Backed out changeset dd86cd22879c (bug 1475329) for wpt failures on remote-playback/idlharness.window.html. CLOSED TREE
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/remote-playback.idl
testing/web-platform/tests/remote-playback/idlharness.html
testing/web-platform/tests/remote-playback/idlharness.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -374867,19 +374867,19 @@
     ]
    ],
    "remote-playback/disable-remote-playback-watch-availability-throws.html": [
     [
      "/remote-playback/disable-remote-playback-watch-availability-throws.html",
      {}
     ]
    ],
-   "remote-playback/idlharness.window.js": [
-    [
-     "/remote-playback/idlharness.window.html",
+   "remote-playback/idlharness.html": [
+    [
+     "/remote-playback/idlharness.html",
      {}
     ]
    ],
    "remote-playback/watch-availability-initial-callback.html": [
     [
      "/remote-playback/watch-availability-initial-callback.html",
      {}
     ]
@@ -591659,17 +591659,17 @@
    "8157418c11faef0a36f0829f42b070daca8b57f5",
    "support"
   ],
   "interfaces/referrer-policy.idl": [
    "04193aef279c9c8e0cb060d715d91c66045aaf17",
    "support"
   ],
   "interfaces/remote-playback.idl": [
-   "0bb6f1c86022bc066ecfcafab9376e9255c3a265",
+   "84f289a6f282eff4f541c03ab0ee91e3b3d9bea1",
    "support"
   ],
   "interfaces/resource-timing.idl": [
    "75fcdf5c6ac811254e1a025cd58d958f27ab5b5b",
    "support"
   ],
   "interfaces/screen-orientation.idl": [
    "c3d267a479600e83e4782e4a80126e3c4467920f",
@@ -611390,18 +611390,18 @@
   "remote-playback/disable-remote-playback-prompt-throws.html": [
    "d61b27d43d1f01f4964be312ad38f249bc89c05e",
    "testharness"
   ],
   "remote-playback/disable-remote-playback-watch-availability-throws.html": [
    "2779fd2a3bd27a011e8ba20dd6fb214978d8a54c",
    "testharness"
   ],
-  "remote-playback/idlharness.window.js": [
-   "8405e3838a635565b39a479444ad0e7cc0c82b06",
+  "remote-playback/idlharness.html": [
+   "715a6950952ed08b9f1ce09b698ab85395553790",
    "testharness"
   ],
   "remote-playback/watch-availability-initial-callback.html": [
    "3d220a3cc0e6a05fbc40c0ab0e46a2e60162b2be",
    "testharness"
   ],
   "requestidlecallback/META.yml": [
    "06b126c4bcdc95ba95c96f590d7218e4952631d1",
--- a/testing/web-platform/tests/interfaces/remote-playback.idl
+++ b/testing/web-platform/tests/interfaces/remote-playback.idl
@@ -1,32 +1,33 @@
 // GENERATED CONTENT - DO NOT EDIT
 // Content of this file was automatically extracted from the
 // "Remote Playback API" spec.
 // See: https://w3c.github.io/remote-playback/
 
 [Exposed=Window]
 interface RemotePlayback : EventTarget {
-  Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback);
-  Promise<void> cancelWatchAvailability(optional long id);
+    Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback);
+    Promise<void> cancelWatchAvailability(optional long id);
 
-  readonly attribute RemotePlaybackState state;
+    readonly attribute RemotePlaybackState state;
 
-  attribute EventHandler onconnecting;
-  attribute EventHandler onconnect;
-  attribute EventHandler ondisconnect;
+             attribute EventHandler        onconnecting;
+             attribute EventHandler        onconnect;
+             attribute EventHandler        ondisconnect;
 
-  Promise<void> prompt();
+    Promise<void> prompt();
 };
 
 enum RemotePlaybackState {
-  "connecting",
-  "connected",
-  "disconnected"
+    "connecting",
+    "connected",
+    "disconnected"
 };
 
 callback RemotePlaybackAvailabilityCallback = void (boolean available);
+partial interface HTMLMediaElement {
+    [SameObject]
+    readonly attribute RemotePlayback remote;
 
-partial interface HTMLMediaElement {
-  [SameObject] readonly attribute RemotePlayback remote;
-
-  [CEReactions] attribute boolean disableRemotePlayback;
+    [CEReactions]
+             attribute boolean        disableRemotePlayback;
 };
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/remote-playback/idlharness.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Remote Playback API IDL tests</title>
+<link rel="help" href="https://w3c.github.io/remoteplayback/"/>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/WebIDLParser.js"></script>
+<script src="/resources/idlharness.js"></script>
+</head>
+<body>
+<h1>Remote Playback API IDL tests</h1>
+<video id='media' width=10 height=10></video>
+<pre id='untested_idl' style='display:none'>
+interface EventHandler {};
+interface HTMLMediaElement : HTMLElement {};
+interface EventTarget {};
+</pre>
+<script>
+"use strict"
+
+promise_test(async function() {
+  var idl_array = new IdlArray();
+  function doTest([html, idl]) {
+    idl_array.add_untested_idls('interface Element {};');
+    idl_array.add_untested_idls(html, { only: [
+      'HTMLElement',
+      'HTMLOrSVGElement',
+      'GlobalEventHandlers',
+      'DocumentAndElementEventHandlers',
+      'ElementContentEditable',
+    ] });
+    idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
+    idl_array.add_idls(idl);
+    idl_array.add_objects({
+      HTMLVideoElement: [document.getElementById("media")],
+      RemotePlayback: [document.getElementById("media").remote]
+    });
+    idl_array.test();
+  }
+
+  return Promise.all(
+    [
+      "/interfaces/html.idl",
+      "/interfaces/remote-playback.idl",
+    ].map(url => fetch(url).then(r => r.text())))
+      .then(doTest);
+}, "Test driver");
+</script>
+<div id="log"></div>
+</body>
+</html>
deleted file mode 100644
--- a/testing/web-platform/tests/remote-playback/idlharness.window.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// META: script=/resources/WebIDLParser.js
-// META: script=/resources/idlharness.js
-// META: script=/common/media.js
-
-'use strict';
-
-// https://w3c.github.io/remoteplayback/
-
-idl_test(
-  ['remote-playback'],
-  ['html', 'dom'],
-  idl_array => {
-    try {
-      const media = document.createElement('video');
-      media.src = getVideoURI('movie_5');
-      media.width = media.height = 10;
-      document.body.appendChild(media);
-      self.media = media;
-    } catch (e) {
-      // Will be surfaced when media is undefined below.
-    }
-
-    idl_array.add_objects({
-      HTMLVideoElement: ['media'],
-      RemotePlayback: ['media.remote']
-    });
-  },
-  'remote-playback interfaces'
-);