Bug 1561435 - Fix test failures for dom/, r=standard8
authorVictor Porof <vporof@mozilla.com>
Mon, 24 Jun 2019 04:55:14 +0200
changeset 544233 4e7dbc3bfab6fd3f1d2f2aae0df37ad1ab0e2292
parent 544232 23e4bd9e52e4d74dff7f69ab0435b6770ec63791
child 544234 6fc1f92ea98de3b3d09b783f052f56f638c583cf
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstandard8
bugs1561435
milestone69.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 1561435 - Fix test failures for dom/, r=standard8 # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35953
dom/events/test/test_error_events.html
dom/workers/test/test_sharedWorker.html
--- a/dom/events/test/test_error_events.html
+++ b/dom/events/test/test_error_events.html
@@ -50,22 +50,22 @@
   var callbackFileTest = async_test("Worker callback filename");
   var callbackLineTest = async_test("Worker callback line number");
   var callbackMessageTest = async_test("Worker callback message");
   var w = new Worker("error_event_worker.js");
   w.addEventListener("message", function(msg) {
     if (msg.data.type == "event") {
       eventFileTest.step(function() { assert_equals(msg.data.filename, workerLocation); });
       eventFileTest.done();
-      eventLineTest.step(function() { assert_equals(msg.data.lineno, 15); });
+      eventLineTest.step(function() { assert_equals(msg.data.lineno, 19); });
       eventLineTest.done();
       eventMessageTest.step(function() { assert_equals(msg.data.message, "Error: workerhello"); });
       eventMessageTest.done();
     } else {
       callbackFileTest.step(function() { assert_equals(msg.data.filename, workerLocation); });
       callbackFileTest.done();
-      callbackLineTest.step(function() { assert_equals(msg.data.lineno, 15); });
+      callbackLineTest.step(function() { assert_equals(msg.data.lineno, 19); });
       callbackLineTest.done();
       callbackMessageTest.step(function() { assert_equals(msg.data.message, "Error: workerhello"); });
       callbackMessageTest.done();
     }
   });
 </script>
--- a/dom/workers/test/test_sharedWorker.html
+++ b/dom/workers/test/test_sharedWorker.html
@@ -17,17 +17,17 @@
       <script class="testbody">
         "use strict";
 
         const href = window.location.href;
         const filename = "sharedWorker_sharedWorker.js";
         const sentMessage = "ping";
         const errorFilename = href.substring(0, href.lastIndexOf("/") + 1) +
                               filename;
-        const errorLine = 90;
+        const errorLine = 97;
         const errorColumn = 11;
 
         var worker = new SharedWorker(filename);
 
         ok(worker instanceof SharedWorker, "Got SharedWorker instance");
         ok(!("postMessage" in worker), "SharedWorker has no 'postMessage'");
         ok(worker.port instanceof MessagePort,
           "Shared worker has MessagePort");