Bug 1506919 [wpt PR 14036] - Implement rejectionhandled event, a=testonly
☠☠ backed out by 46ad93280b06 ☠ ☠
authorCYBAI <cyb.ai.815@gmail.com>
Mon, 19 Nov 2018 18:45:45 +0000
changeset 503735 0b2f801856141bb6a7673db5cb370eaf5e813ba9
parent 503734 0143d49ed65b65beab2f2f6d9c74ca58f590e2f6
child 503736 ee38ad38e9a1f86ac344708152c5cf98f72dd29d
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1506919, 14036
milestone65.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 1506919 [wpt PR 14036] - Implement rejectionhandled event, a=testonly Automatic update from web-platform-testsCheck including the error message from Error constructor as required -- wpt-commits: b4c61af0f410976b96279df7f75715091619057d wpt-pr: 14036
testing/web-platform/tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html
--- a/testing/web-platform/tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html
+++ b/testing/web-platform/tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html
@@ -10,17 +10,17 @@ setup({
   allow_uncaught_exception: true
 });
 async_test(function(t) {
   var e = new Error('e');
   var e2 = new Error('e2');
 
   window.onerror = function (msg, url, line, col, error) {
     t.step(function() {
-      assert_equals(msg, 'Uncaught Error: e2');
+      assert_true(msg.includes('e2'));
       assert_equals(error, e2);
     });
     t.done();
   };
 
   window.onrejectionhandled = function() {
     // This should cause onerror
     throw e2;