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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/multi-globals/url-parsing.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 <title>Request constructor URL parsing, with multiple globals in play</title>
3 <link rel="help" href="https://fetch.spec.whatwg.org/#dom-request">
4 <link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7
8 <!-- This is the entry global -->
9
10 <iframe src="incumbent/incumbent.html"></iframe>
11
12 <script>
13 'use strict';
14
15 const loadPromise = new Promise(resolve => {
16 window.addEventListener("load", () => resolve());
17 });
18
19 promise_test(() => {
20 return loadPromise.then(() => {
21 const req = document.querySelector('iframe').contentWindow.createRequest ("url");
22
23 assert_equals(req.url, new URL("current/success/url", location.href).hre f);
24 });
25 }, "should parse the URL relative to the current settings object");
26
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698