Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / promise-rejection-events-isolated-worlds.html
blob9bd818891a91e5283fac8ab57e0e3abdb112f217
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 'use strict';
7 async_test(function(t) {
8 if (window.testRunner) {
9 testRunner.evaluateScriptInIsolatedWorld(1, "var p = Promise.reject(new Error());");
11 window.onunhandledrejection = t.unreached_func('no events should fire');
12 window.onrejectionhandled = t.unreached_func('no events should fire');
13 setTimeout(function() { t.done(); }, 10);
14 }, 'promise rejection events should not be fired for content scripts');
15 </script>