OLD | NEW |
(Empty) | |
| 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 Erro
r());"); |
| 10 } |
| 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> |
OLD | NEW |