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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/headers/headers-idl.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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Headers idl interface</title>
6 <meta name="help" href="https://fetch.spec.whatwg.org/#response">
7 <meta name="author" title="Canon Research France" href="https://www.crf.cano n.fr">
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script src="/resources/WebIDLParser.js"></script>
11 <script src="/resources/idlharness.js"></script>
12 </head>
13 <body>
14 <script id="headers-idl" type="text/plain">
15 typedef (sequence<sequence<ByteString>> or record<ByteString>) HeadersInit ;
16
17 [Constructor(optional HeadersInit init),
18 Exposed=(Window,Worker)]
19 interface Headers {
20 void append(ByteString name, ByteString value);
21 void delete(ByteString name);
22 ByteString? get(ByteString name);
23 boolean has(ByteString name);
24 void set(ByteString name, ByteString value);
25 iterable<ByteString, ByteString>;
26 };
27 </script>
28 <script>
29 var idlsArray = new IdlArray();
30 var idl = document.getElementById("headers-idl").textContent
31 idlsArray.add_idls(idl);
32 idlsArray.add_objects({ Headers: ['new Headers()'] });
33 idlsArray.test();
34 </script>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698