Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/DOMImplementation-createDocument.html

Issue 1666363003: Import web-platform-tests@27e3d93f88a71a249d1df872a5d613b3243b9588 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed win failiure in TestExpectations Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>DOMImplementation.createDocument(namespace, qualifiedName, doctype)</titl e> 3 <title>DOMImplementation.createDocument(namespace, qualifiedName, doctype)</titl e>
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createdo cument"> 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createdo cument">
5 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-createelementns"> 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-createelementns">
6 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-nodetype"> 6 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-nodetype">
7 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-documentelement"> 7 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-documentelement">
8 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-doctype"> 8 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-doctype">
9 <script src="../../../../resources/testharness.js"></script> 9 <script src="../../../../resources/testharness.js"></script>
10 <script src="../../../../resources/testharnessreport.js"></script> 10 <script src="../../../../resources/testharnessreport.js"></script>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 test(function() { 113 test(function() {
114 var doc = document.implementation.createDocument(namespace, qualifiedNam e, doctype) 114 var doc = document.implementation.createDocument(namespace, qualifiedNam e, doctype)
115 assert_equals(doc.characterSet, "UTF-8", "characterSet"); 115 assert_equals(doc.characterSet, "UTF-8", "characterSet");
116 assert_equals(doc.charset, "UTF-8", "charset"); 116 assert_equals(doc.charset, "UTF-8", "charset");
117 assert_equals(doc.inputEncoding, "UTF-8", "inputEncoding"); 117 assert_equals(doc.inputEncoding, "UTF-8", "inputEncoding");
118 }, "createDocument test " + i + ": characterSet aliases for " + 118 }, "createDocument test " + i + ": characterSet aliases for " +
119 [namespace, qualifiedName, doctype].map(function(el) { return format_value (el) })) 119 [namespace, qualifiedName, doctype].map(function(el) { return format_value (el) }))
120 } 120 }
121 }) 121 })
122 }) 122 })
123
124 test(function() {
125 assert_throws(new TypeError(), function() {
126 document.implementation.createDocument()
127 }, "createDocument() should throw")
128
129 assert_throws(new TypeError(), function() {
130 document.implementation.createDocument('')
131 }, "createDocument('') should throw")
132 }, "createDocument with missing arguments");
123 </script> 133 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698