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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.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
Index: third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html b/third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html
index 5e1ece76f9808fc1e8b6829b75e84ed8032d0141..755f614f6425346a612168e39db8bd7206309195 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html
@@ -13,10 +13,12 @@ addEventListener('unhandledrejection', function(e) {
function finishTest() {
setTimeout(function() {
- if (window.testRunner) {
- testRunner.notifyDone();
- }
- }, 1);
+ setTimeout(function() {
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }, 0);
+ }, 0);
};
</script>
<script src='http://localhost:8000/security/resources/promise-access-control.php?allow=false' onload='finishTest()'></script>

Powered by Google App Engine
This is Rietveld 408576698