Index: third_party/WebKit/LayoutTests/fast/dom/dom-parser-document-origin.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/dom-parser-document-origin.html b/third_party/WebKit/LayoutTests/fast/dom/dom-parser-document-origin.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..54b81b42e147e053dcb06d8113a818bdf59911f7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dom/dom-parser-document-origin.html |
@@ -0,0 +1,8 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+test (function() { |
+ assert_equals((new DOMParser).parseFromString("", "text/html").origin, "file://"); |
tkent
2016/06/01 23:06:49
nit: "file://" should be document.origin.
ramya.v
2016/06/02 03:47:18
Done.
|
+}, "This test checks that documents created from DOMParser inherit origin"); |
+</script> |