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'); | |
|
foolip
2017/04/04 03:50:49
Can you also test null and undefined as the first
| |
| 9 }, 'window.open() should have default url = "about:blank"'); | |
| 10 | |
| 11 test(function() { | |
| 12 assert_equals(window.open('about:blank', undefined).name, ''); | |
| 13 assert_equals(window.open('about:blank', null).name, 'null'); | |
| 14 }, 'window.open() browsing context name'); | |
| 15 </script> | |
| OLD | NEW |