OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <p>Tests that promise rejection events are muted for cross origin non-CORS scrip
ts</p> |
| 4 <script> |
| 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); |
| 8 } |
| 9 |
| 10 addEventListener('unhandledrejection', function(e) { |
| 11 console.log('FAIL: received unhandledrejection event'); |
| 12 }); |
| 13 |
| 14 function finishTest() { |
| 15 setTimeout(function() { |
| 16 if (window.testRunner) { |
| 17 testRunner.notifyDone(); |
| 18 } |
| 19 }, 0); |
| 20 }; |
| 21 </script> |
| 22 <script src='http://localhost:8000/security/resources/promise-access-control.php
?allow=false' onload='finishTest()'></script> |
OLD | NEW |