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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/redirect/redirect-schemes.html

Issue 2778753002: Import //fetch from Web Platform Tests. (Closed)
Patch Set: Baselines. Created 3 years, 9 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/external/wpt/fetch/api/redirect/redirect-schemes.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/api/redirect/redirect-schemes.html b/third_party/WebKit/LayoutTests/external/wpt/fetch/api/redirect/redirect-schemes.html
new file mode 100644
index 0000000000000000000000000000000000000000..cffec19d56a32f4b19eac363bbf48e66d9bcda1e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/api/redirect/redirect-schemes.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Fetch: handling different schemes in redirects</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id=log></div>
+<script>
+ // All non-HTTP(S) schemes cannot survive redirects
+ var url = "../resources/redirect.py?location=";
+ var tests = [
+ url + "mailto:a@a.com",
+ url + "data:,HI",
+ url + "facetime:a@a.org",
+ url + "about:blank",
+ url + "about:unicorn",
+ url + "blob:djfksfjs"
+ ];
+ tests.forEach(function(url) {
+ promise_test(function(test) {
+ return promise_rejects(test, new TypeError(), fetch(url))
+ })
+ })
+</script>

Powered by Google App Engine
This is Rietveld 408576698