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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/preload/reflected-as-value.html

Issue 2903653005: [preload] Mandatory `as` value and related spec alignments (Closed)
Patch Set: IDL changes Created 3 years, 6 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 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script>
5 test(function() {
6 var link = document.createElement("link");
7 var values = {
8 "Image": "image",
9 "images": "",
10 "scripT": "script",
11 "style": "style",
12 "": "",
13 "foNt": "font",
14 "foobar": "",
15 "video": "video",
16 "audio": "audio",
17 "track": "track",
18 };
19 var keys = Object.keys(values);
20 for (var i = 0; i < keys.length; ++i) {
21 link.as = keys[i];
22 assert_true(link.as == values[keys[i]]);
23 }
24 }, "Make sure that the `as` value reflects only known values");
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698