Index: third_party/WebKit/LayoutTests/http/tests/htmlimports/import-innerHTML-blocked.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/htmlimports/import-innerHTML-blocked.html b/third_party/WebKit/LayoutTests/http/tests/htmlimports/import-innerHTML-blocked.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..260b91ec212ba596fb0993d00e8c530c20711857 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/htmlimports/import-innerHTML-blocked.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+</head> |
+<body> |
+ <div></div> |
+<script> |
+ document.querySelector('div').innerHTML = "<link rel='import' id='innerLink' href='resources/hello.html'>"; |
+</script> |
+<link id="followingLink" rel="import" href="resources/hello.html"> |
+<script> |
+test(function() { |
+ assert_true(null == innerLink.import, 'Import via innerHTML'); |
kouhei (in TOK)
2016/02/08 01:00:31
===?
|
+ assert_true(null != followingLink.import, 'Following import loaded'); |
kouhei (in TOK)
2016/02/08 01:00:31
!==?
|
+}, 'Block imports via innerHTML.'); |
+</script> |
+</body> |
+</html> |