OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>HTML Test: Browsing context - Default name</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 <iframe src="message.html" style="display:none"></iframe> |
| 9 <script> |
| 10 |
| 11 test(function () { |
| 12 assert_equals(window.frames[0].name, "", "The browsing context should not have
a default name."); |
| 13 }, "A embedded browsing context has no default name"); |
| 14 |
| 15 test(function () { |
| 16 var win = window.open("about:blank", "_blank"); |
| 17 assert_equals(win.name, "", "The browsing context should not have a name."); |
| 18 win.close(); |
| 19 }, "A browsing context which is opened by window.open() method with '_blank' par
ameter has no default name"); |
| 20 |
| 21 //This test must be run when the current browsing context's name is not set |
| 22 test(function () { |
| 23 assert_equals(window.name, "", "The browsing context should not have a name.")
; |
| 24 }, "A browsing context has no default name"); |
| 25 |
| 26 </script> |
OLD | NEW |