Bug 1506919 [wpt PR 14036] - Implement rejectionhandled event, a=testonly
authorCYBAI <cyb.ai.815@gmail.com>
Mon, 19 Nov 2018 18:45:45 +0000
changeset 506770 b5b203f13d4b19e7d907f11fedfe89fad54d2032
parent 506769 d366cf85ff776643dda946b0808dc1d1827dc802
child 506771 65a2135472b542f302594c39593a7e8a8a52cb71
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [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;