Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Document-contentType/contentType/contenttype_javascripturi.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Document-contentType/contentType/contenttype_javascripturi.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Document-contentType/contentType/contenttype_javascripturi.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..382119fa14c54855ba522c2bfe8b96d1878d33b8 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Document-contentType/contentType/contenttype_javascripturi.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<title>Javascript URI document.contentType === 'text/html'</title> |
+<script src="../../../../../../resources/testharness.js"></script> |
+<script src="../../../../../../resources/testharnessreport.js"></script> |
+<div id=log></div> |
+<iframe style="display:none"></iframe> |
+<script> |
+async_test(function() { |
+ var iframe = document.getElementsByTagName('iframe')[0]; |
+ iframe.addEventListener('load', this.step_func_done(function() { |
+ assert_equals(iframe.contentDocument.contentType, "text/html"); |
+ assert_equals(iframe.contentDocument.documentElement.textContent, "text/html"); |
+ }), false); |
+ iframe.src = "javascript:document.contentType"; |
+}); |
+</script> |