Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html

Issue 2813823004: Make two promise-related tests deterministic (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html
index 386af169a641da503f2b860c9ef32db56bc518f2..c76d531c43ec3ecc8cbf3c21f3a0ffa4db7be715 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html
@@ -27,9 +27,11 @@ async_test(function(t) {
};
var p = Promise.reject(e);
- setTimeout(t.step_func(function() {
- // This will cause onrejectionhandled
- p.catch(function() {});
- }), 1);
+ setTimeout(function() {
+ setTimeout(t.step_func(function() {
+ // This will cause onrejectionhandled
+ p.catch(function() {});
+ }), 0);
+ }, 0);
}, 'Throwing inside an unhandledrejection handler invokes the error handler.');
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698