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> |