Index: third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/window-open.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/window-open.html b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/window-open.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b86db0e0d374dcd1cad7105fda53d6692e411d30 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/window-open.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<title>Window#open</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<div id="log"></div> |
+<script> |
+test(function() { |
+ 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
|
+}, 'window.open() should have default url = "about:blank"'); |
+ |
+test(function() { |
+ assert_equals(window.open('about:blank', undefined).name, ''); |
+ assert_equals(window.open('about:blank', null).name, 'null'); |
+}, 'window.open() browsing context name'); |
+</script> |