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

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

Issue 1474983004: Mute non-CORS cross origin promise rejection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-allow-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <p>Tests that promise rejection events are received for cross origin CORS script s</p>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
9
10 addEventListener('unhandledrejection', function(e) {
11 console.log('PASS: received unhandledrejection event');
12 if (e.reason == 42)
13 console.log('PASS: received expected reason');
14 else
15 console.log('FAIL: received unexpected reason: ' + e.reason);
16 if (window.testRunner)
17 testRunner.notifyDone();
18 });
19 </script>
20 <script src='http://localhost:8000/security/resources/promise-access-control.php ?allow=true' crossorigin='anonymous'></script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-allow-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698