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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html

Issue 2738773004: No longer clamp setTimeout(..., 0) to 1ms. (Closed)
Patch Set: update webgl2 conformance expectations as well 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <p>Tests that promise rejection events are muted for cross origin non-CORS scrip ts</p> 3 <p>Tests that promise rejection events are muted for cross origin non-CORS scrip ts</p>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 addEventListener('unhandledrejection', function(e) { 10 addEventListener('unhandledrejection', function(e) {
11 console.log('FAIL: received unhandledrejection event'); 11 console.log('FAIL: received unhandledrejection event');
12 }); 12 });
13 13
14 function finishTest() { 14 function finishTest() {
15 setTimeout(function() { 15 setTimeout(function() {
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 } 18 }
19 }, 0); 19 }, 1);
20 }; 20 };
21 </script> 21 </script>
22 <script src='http://localhost:8000/security/resources/promise-access-control.php ?allow=false' onload='finishTest()'></script> 22 <script src='http://localhost:8000/security/resources/promise-access-control.php ?allow=false' onload='finishTest()'></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698