| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3b8ac11e8b0e1ecb7f5323c920abc3d7e7ebea18
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<meta charset="utf-8">
|
| +<p>Tests that promise rejection events are muted for cross origin non-CORS scripts</p>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +addEventListener('unhandledrejection', function(e) {
|
| + console.log('FAIL: received unhandledrejection event');
|
| +});
|
| +
|
| +function finishTest() {
|
| + setTimeout(function() {
|
| + if (window.testRunner) {
|
| + testRunner.notifyDone();
|
| + }
|
| + }, 0);
|
| +};
|
| +</script>
|
| +<script src='http://localhost:8000/security/resources/promise-access-control.php?allow=false' onload='finishTest()'></script>
|
|
|