Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/window-open.html

Issue 2755773002: Make Window#open arguments optional to match the spec
Patch Set: Updated layout tests for window.open Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/js/function-length.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/js/function-length.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698