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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-open-invalid-url.html

Issue 2855263004: Throw in window.open() when an invalid URL is being passed (Closed)
Patch Set: updates Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/Window/window-open-invalid-url.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-invalid-url.html b/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-invalid-url.html
new file mode 100644
index 0000000000000000000000000000000000000000..2b03ed6a117c1ede335f97ab428b75c64dc6fc2d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-invalid-url.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<title>window.open: invalid URL</title>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+ test(() => {
+ assert_throws("SyntaxError", () => { self.open("http:"); });
foolip 2017/05/05 11:21:29 This is the same as https://github.com/w3c/web-pla
jochen (gone - plz use gerrit) 2017/05/05 11:25:51 I don't know why the wpt/url isn't yet included, a
foolip 2017/05/05 11:28:55 Oh, importing that is https://codereview.chromium.
+ }, "Check that window.open() throws on an invalid URL.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698