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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/basic/response-url.js

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 if (this.document === undefined) {
2 importScripts("/resources/testharness.js");
3 }
4
5 function checkResponseURL(fetchedURL, expectedURL)
6 {
7 promise_test(function() {
8 return fetch(fetchedURL).then(function(response) {
9 assert_equals(response.url, expectedURL);
10 });
11 }, "Testing response url getter with " +fetchedURL);
12 }
13
14 var baseURL = "http://{{host}}:{{ports[http][0]}}";
15 checkResponseURL(baseURL + "/ada", baseURL + "/ada");
16 checkResponseURL(baseURL + "/#", baseURL + "/");
17 checkResponseURL(baseURL + "/#ada", baseURL + "/");
18 checkResponseURL(baseURL + "#ada", baseURL + "/");
19
20 done();
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698