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

Side by Side Diff: LayoutTests/fast/html/imports/import-shared-remove.html

Issue 17137008: Extract HTMLImportLoader from LinkImport (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-shared-remove-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <head>
6 <link id="main" rel="import" href="resources/hello.html">
7 <link id="shared1" rel="import" href="resources/hello.html">
8 <link id="shared2" rel="import" href="resources/hello.html">
9 </head>
10 <body>
11 <script>
12 test(function() {
13 var main = document.getElementById("main");
14 var shared1 = document.getElementById("shared1");
15 var shared2 = document.getElementById("shared2");
16
17 assert_true(main.import != null);
18 assert_true(shared1.import != null);
19 assert_true(shared2.import != null);
20
21 document.head.removeChild(shared1);
22 assert_true(main.import != null);
23 assert_true(shared1.import == null);
24 assert_true(shared2.import != null);
25
26 document.head.removeChild(main);
27 assert_true(main.import == null);
28 assert_true(shared1.import == null);
29 assert_true(shared2.import != null);
30
31 },
32 "Check that change on a link with same url doesn't affect others."
33 );
34 </script>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-shared-remove-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698