From 0d6ead96a35ccbbb402f3dd2181918dff439cb5e Mon Sep 17 00:00:00 2001 From: CYBAI Date: Tue, 13 Nov 2018 23:51:47 +0800 Subject: [PATCH] Check including the error message from Error constructor as required --- tests/wpt/metadata/MANIFEST.json | 2 +- .../promise-rejection-events-onerror.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index d9ddaeefa1f..5c86168c365 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -624649,7 +624649,7 @@ "testharness" ], "html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html": [ - "c76d531c43ec3ecc8cbf3c21f3a0ffa4db7be715", + "b6f6d63e0aa9660909c93e7366f80f4f36c97ecf", "testharness" ], "html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.dedicatedworker.html": [ diff --git a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html index c76d531c43e..b6f6d63e0aa 100644 --- a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html +++ b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html @@ -15,7 +15,7 @@ async_test(function(t) { 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();