Bug 1494151. Fix broken web platform test that was trying to connect on a non-existent port. r=jgraham
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 15 Oct 2018 09:32:51 -0400
changeset 489558 4f99223da02146842694203124351f21b96dec5a
parent 489557 d49ecfa61467d95283e716c0f102c9fe26c497a4
child 489560 78add290fb096999f15edf658aa4026c197ed366
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersjgraham
bugs1494151
milestone64.0a1
Bug 1494151. Fix broken web platform test that was trying to connect on a non-existent port. r=jgraham
testing/web-platform/meta/dom/events/EventListener-addEventListener.sub.window.js.ini
testing/web-platform/meta/dom/events/EventListener-incumbent-global-1.sub.html.ini
testing/web-platform/tests/dom/events/EventListener-addEventListener.sub.window.js
deleted file mode 100644
--- a/testing/web-platform/meta/dom/events/EventListener-addEventListener.sub.window.js.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[EventListener-addEventListener.sub.window.html]
-  expected: TIMEOUT
-  [EventListener.addEventListener doesn't throw when a cross origin object is passed in.]
-    expected: TIMEOUT
-
deleted file mode 100644
--- a/testing/web-platform/meta/dom/events/EventListener-incumbent-global-1.sub.html.ini
+++ /dev/null
@@ -1,9 +0,0 @@
-[EventListener-incumbent-global-1.sub.html]
-  expected:
-    if not debug and not webrender and e10s and (os == "mac") and (version == "OS X 10.10.5") and (processor == "x86_64") and (bits == 64): TIMEOUT
-    if debug and not webrender and e10s and (os == "mac") and (version == "OS X 10.10.5") and (processor == "x86_64") and (bits == 64): TIMEOUT
-  [Check the incumbent global EventListeners  are called with]
-    expected:
-      if not debug and not webrender and e10s and (os == "mac") and (version == "OS X 10.10.5") and (processor == "x86_64") and (bits == 64): TIMEOUT
-      if debug and not webrender and e10s and (os == "mac") and (version == "OS X 10.10.5") and (processor == "x86_64") and (bits == 64): TIMEOUT
-
--- a/testing/web-platform/tests/dom/events/EventListener-addEventListener.sub.window.js
+++ b/testing/web-platform/tests/dom/events/EventListener-addEventListener.sub.window.js
@@ -1,9 +1,9 @@
 async_test(function(t) {
   let crossOriginFrame = document.createElement('iframe');
-  crossOriginFrame.src = 'https://{{hosts[alt][]}}/common/blank.html';
+  crossOriginFrame.src = 'https://{{hosts[alt][]}}:{{ports[https][0]}}/common/blank.html';
   document.body.appendChild(crossOriginFrame);
   crossOriginFrame.addEventListener('load', t.step_func_done(function() {
     let crossOriginWindow = crossOriginFrame.contentWindow;
     window.addEventListener('click', crossOriginWindow);
   }));
 }, "EventListener.addEventListener doesn't throw when a cross origin object is passed in.");