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

Side by Side 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, 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
OLDNEW
(Empty)
1 <!doctype html>
2 <meta charset="utf-8">
3 <title>Fetch: handling different schemes in redirects</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <div id=log></div>
7 <script>
8 // All non-HTTP(S) schemes cannot survive redirects
9 var url = "../resources/redirect.py?location=";
10 var tests = [
11 url + "mailto:a@a.com",
12 url + "data:,HI",
13 url + "facetime:a@a.org",
14 url + "about:blank",
15 url + "about:unicorn",
16 url + "blob:djfksfjs"
17 ];
18 tests.forEach(function(url) {
19 promise_test(function(test) {
20 return promise_rejects(test, new TypeError(), fetch(url))
21 })
22 })
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698