choose-default-002.html (722B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>HTML Test: Browsing context names - empty string</title> 4 <link rel="author" title="Intel" href="http://www.intel.com/"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <div id="log"></div> 8 <script> 9 async_test(t => { 10 window.addEventListener('message', t.step_func_done(e => { 11 assert_equals(e.data.isTop, false); 12 assert_equals(e.data.name, 'hellothere', 'Empty-string browsing context should choose current context'); 13 }), false); 14 }, 'The current browsing context must be chosen if the given name is empty string'); 15 </script> 16 <iframe name="hellothere" src="resources/choose-default-002-iframe.html"></iframe>