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

Unified Diff: LayoutTests/fast/html/imports/import-remove.html

Issue 15856002: First step of HTMLImports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Mac build Created 7 years, 7 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
Index: LayoutTests/fast/html/imports/import-remove.html
diff --git a/LayoutTests/fast/html/imports/import-remove.html b/LayoutTests/fast/html/imports/import-remove.html
new file mode 100644
index 0000000000000000000000000000000000000000..4675a66623251d3a1e407f8eac7ac401b442b3ac
--- /dev/null
+++ b/LayoutTests/fast/html/imports/import-remove.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<script src="../../js/resources/js-test-pre.js"></script>
+<head>
+<link id="hello" rel="import" href="resources/hello.html">
+</head>
+<body>
+<script>
+jsTestIsAsync = true;
+var hello = document.getElementById("hello");
+shouldBeNonNull("hello.import");
+
+debug("Node removal should make import deleted.");
+hello.parentNode.removeChild(hello);
+shouldBeNull("hello.import");
+
+debug("Re-inserting it shouldn't help.");
+document.head.appendChild(hello);
+window.setTimeout(function() {
+ shouldBeNull("hello.import");
+ finishJSTest();
+}, 0);
+
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/html/imports/import-owner-expected.txt ('k') | LayoutTests/fast/html/imports/import-remove-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698