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

Unified Diff: LayoutTests/http/tests/htmlimports/imported-document.html

Issue 16936002: [HTML Imports] Make HTMLLinkElement.import a Document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: LayoutTests/http/tests/htmlimports/imported-document.html
diff --git a/LayoutTests/http/tests/htmlimports/imported-document.html b/LayoutTests/http/tests/htmlimports/imported-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..8558cc6bd221cccf5adf52cf26dafd5855037caa
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/imported-document.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<link id="target" rel="import" href="resources/hello.html">
+</head>
+<body>
+<script>
+test(function() {
+ var target = document.getElementById("target");
+ assert_equals(target.href, target.import.URL);
+ assert_true(target.import instanceof Document)
+},
+"Check on the document URL of loaded document",
+{
+ "help": ["https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/imports/index.html#imported-document"],
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698