From 068960dd4873c69c2d588fe17bfa68480614983e Mon Sep 17 00:00:00 2001 From: Hiroshige Hayashizaki Date: Tue, 7 Sep 2021 18:28:45 +0000 Subject: [PATCH] [WPT] Distinguish base URLs in string-compilation-of-promise-result.html The tests fail on Safari/Firefox/Chromium, and thus this change exposes that the browsers set no active scripts for `Promise.resolve(...).then(eval)`. Bug: 1245063, https://github.com/heycam/webidl/pull/902 Change-Id: Ic7debcd66e3f90c2fcb973d1e4100daabf2895dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3130646 Commit-Queue: Hiroshige Hayashizaki Reviewed-by: Domenic Denicola Cr-Commit-Position: refs/heads/main@{#918862} --- ...compilation-of-promise-result-expected.txt | 7 ++++++ .../string-compilation-of-promise-result.html | 22 +++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result-expected.txt diff --git a/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result-expected.txt b/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result-expected.txt new file mode 100644 index 00000000000000..199f68bf98cff4 --- /dev/null +++ b/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result-expected.txt @@ -0,0 +1,7 @@ +This is a testharness.js-based test. +FAIL Evaled the script via eval, successful import promise_test: Unhandled rejection with value: object "TypeError: Failed to fetch dynamically imported module: http://web-platform.test:8001/html/semantics/imports-a.js?1" +PASS Evaled the script via eval, failed import +FAIL Evaled the script via Function, successful import promise_test: Unhandled rejection with value: object "TypeError: Failed to fetch dynamically imported module: http://web-platform.test:8001/html/semantics/imports-a.js?2" +PASS Evaled the script via Function, failed import +Harness: the test ran to completion. + diff --git a/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result.html b/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result.html index e0e3ec8a94df8b..5514049c78ddf8 100644 --- a/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result.html +++ b/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-of-promise-result.html @@ -8,17 +8,35 @@ + +