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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-shared-remove-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/imports/import-shared-remove.html
diff --git a/LayoutTests/fast/html/imports/import-shared-remove.html b/LayoutTests/fast/html/imports/import-shared-remove.html
new file mode 100644
index 0000000000000000000000000000000000000000..04fc16e20342c683d6c4c853aa4fb404659ac269
--- /dev/null
+++ b/LayoutTests/fast/html/imports/import-shared-remove.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<head>
+<link id="main" rel="import" href="resources/hello.html">
+<link id="shared1" rel="import" href="resources/hello.html">
+<link id="shared2" rel="import" href="resources/hello.html">
+</head>
+<body>
+<script>
+test(function() {
+ var main = document.getElementById("main");
+ var shared1 = document.getElementById("shared1");
+ var shared2 = document.getElementById("shared2");
+
+ assert_true(main.import != null);
+ assert_true(shared1.import != null);
+ assert_true(shared2.import != null);
+
+ document.head.removeChild(shared1);
+ assert_true(main.import != null);
+ assert_true(shared1.import == null);
+ assert_true(shared2.import != null);
+
+ document.head.removeChild(main);
+ assert_true(main.import == null);
+ assert_true(shared1.import == null);
+ assert_true(shared2.import != null);
+
+},
+"Check that change on a link with same url doesn't affect others."
+);
+</script>
+</body>
+</html>
« 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