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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html-imports/fetching/already-in-import-map.html

Issue 560893005: First checked-in import of the W3C's test suites. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add new expectations for newly failing w3c tests Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Fetching import</title>
5 <link rel="help" href="http://w3c.github.io/webcomponents/spec/imports/#fetching -import">
6 <script src="../../../../resources/testharness.js"></script>
7 <script src="../../../../resources/testharnessreport.js"></script>
8 <link rel="stylesheet" href="../../../../resources/testharness.css">
9
10 <link id="first" rel="import" href="resources/hello.html">
11 <link id="shouldBeInImportMap" rel="import" href="resources/hello.html">
12 <link id="parentOfFirst" rel="import" href="resources/parent-of-hello.html">
13
14 </head>
15 <body>
16 <div id="log"></div>
17 <script>
18 test(function() {
19 assert_true(window.first.import === window.shouldBeInImportMap.import);
20 }, 'If LOCATION is already in the import map, let IMPORT be the imported documen t for LOCATION and stop. (1)');
21
22 test(function() {
23 console.log(window.parentOfFirst);
24 assert_true(window.first.import === window.parentOfFirst.import.getElementByI d('child').import);
25 }, 'If LOCATION is already in the import map, let IMPORT be the imported documen t for LOCATION and stop. (2)');
26 </script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698