Promise-incumbent-global.sub.html (609B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title></title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <iframe src="{{location[scheme]}}://{{domains[www1]}}:{{ports[http][0]}}{{location[path]}}/../Promise-incumbent-global-subframe.sub.html"></iframe> 7 <script> 8 9 var t = async_test("Check the incumbent global Promise callbacks are called with"); 10 11 onload = t.step_func(function() { 12 onmessage = t.step_func_done(function(e) { 13 var d = e.data; 14 assert_equals(d.actual, d.expected, d.reason); 15 }); 16 17 frames[0].postMessage("start", "*"); 18 }); 19 20 </script>