Index: third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor-xml.xml |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor.html b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor-xml.xml |
similarity index 80% |
copy from third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor.html |
copy to third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor-xml.xml |
index 11549da4ab47dd5c5ff5c1f3e661474bd023ba84..9aada512c895b9ad91516892007ba1d4ab8d9c1c 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor-xml.xml |
@@ -1,13 +1,15 @@ |
-<!doctype html> |
-<meta charset=windows-1252> |
+<?xml version="1.0" encoding="windows-1252"?> |
<!-- Using windows-1252 to ensure that new Document() doesn't inherit utf-8 |
from the parent document. --> |
+<html xmlns="http://www.w3.org/1999/xhtml"> |
+<head> |
<title>Document constructor</title> |
-<link rel=help href="https://dom.spec.whatwg.org/#dom-document"> |
+<link rel="help" href="https://dom.spec.whatwg.org/#dom-document" /> |
+</head> |
+<body> |
<script src="/resources/testharness.js"></script> |
<script src="/resources/testharnessreport.js"></script> |
-<div id="log"></div> |
-<script> |
+<script><![CDATA[ |
test(function() { |
var doc = new Document(); |
assert_true(doc instanceof Node, "Should be a Node"); |
@@ -33,6 +35,7 @@ test(function() { |
assert_equals(doc.compatMode, "CSS1Compat"); |
assert_equals(doc.characterSet, "UTF-8"); |
assert_equals(doc.contentType, "application/xml"); |
+ assert_equals(doc.origin, document.origin); |
assert_equals(doc.createElement("DIV").localName, "DIV"); |
}, "new Document(): metadata") |
@@ -42,12 +45,6 @@ test(function() { |
assert_equals(doc.charset, "UTF-8", "charset"); |
assert_equals(doc.inputEncoding, "UTF-8", "inputEncoding"); |
}, "new Document(): characterSet aliases") |
- |
-test(function() { |
- var doc = new Document(); |
- var a = doc.createElement("a"); |
- // In UTF-8: 0xC3 0xA4 |
- a.href = "http://example.org/?\u00E4"; |
- assert_equals(a.href, "http://example.org/?%C3%A4"); |
-}, "new Document(): URL parsing") |
-</script> |
+]]></script> |
+</body> |
+</html> |