Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <title>Window#open</title> | |
| 3 <script src="/resources/testharness.js"></script> | |
| 4 <script src="/resources/testharnessreport.js"></script> | |
| 5 <div id="log"></div> | |
| 6 <script> | |
| 7 test(function() { | |
| 8 assert_equals(window.open().location.href, 'about:blank'); | |
| 9 assert_equals(window.open(undefined).location.href, 'about:blank'); | |
| 10 assert_equals(window.open('null').location.href, 'about:blank'); | |
|
foolip
2017/04/05 04:33:56
Here I meant to test using the literal null, not a
| |
| 11 }, 'window.open() should have default url = "about:blank"'); | |
| 12 | |
| 13 test(function() { | |
| 14 assert_equals(window.open('about:blank', undefined).name, ''); | |
| 15 assert_equals(window.open('about:blank', null).name, ''); | |
| 16 }, 'window.open() browsing context name'); | |
| 17 </script> | |
| OLD | NEW |