Bug 450160 - DOMImplementation createDocument does not create an HTML document; (Bv1) Remove blank lines in log; r=Olli.Pettay

This commit is contained in:
Serge Gautherie 2009-04-04 23:08:58 +02:00
Родитель a5f39685c3
Коммит c53ec4ca69
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -28,9 +28,9 @@ function testHTMLDocuments(ids, isXHTML) {
ids[i],
null);
ok(docType1, "No doctype?");
ok(!docType1.ownerDocument, "docType shouldn't have ownerDocument!\n");
ok(!docType1.ownerDocument, "docType shouldn't have ownerDocument!");
var doc1 = document.implementation.createDocument(null, null, docType1);
is(docType1.ownerDocument, doc1, "docType should have ownerDocument!\n");
is(docType1.ownerDocument, doc1, "docType should have ownerDocument!");
ok(!doc1.documentElement, "Document shouldn't have document element!");
is(doc1.body, null, "Shouldn't have .body!");
ok(doc1 instanceof Components.interfaces.nsIDOMHTMLDocument,
@ -44,7 +44,7 @@ function testHTMLDocuments(ids, isXHTML) {
null);
var doc2 = document.implementation.createDocument(
"http://www.w3.org/1999/xhtml", "html", docType2);
is(docType2.ownerDocument, doc2, "docType should have ownerDocument!\n");
is(docType2.ownerDocument, doc2, "docType should have ownerDocument!");
ok(doc2.documentElement, "Document should have document element!");
is(doc2.documentElement.localName, "html", "Wrong document element!");
is(doc2.body, null, "Shouldn't have .body!");
@ -65,9 +65,9 @@ function testSVGDocument() {
"-//W3C//DTD SVG 1.1//EN",
null);
ok(docType1, "No doctype?");
ok(!docType1.ownerDocument, "docType shouldn't have ownerDocument!\n");
ok(!docType1.ownerDocument, "docType shouldn't have ownerDocument!");
var doc1 = document.implementation.createDocument(null, null, docType1);
is(docType1.ownerDocument, doc1, "docType should have ownerDocument!\n");
is(docType1.ownerDocument, doc1, "docType should have ownerDocument!");
ok(!doc1.documentElement, "Document shouldn't have document element!");
ok(!(doc1 instanceof Components.interfaces.nsIDOMHTMLDocument),
"Document shouldn't be an HTML document!");
@ -92,9 +92,9 @@ function testFooBarDocument() {
var docType1 =
document.implementation.createDocumentType("FooBar", "FooBar", null);
ok(docType1, "No doctype?");
ok(!docType1.ownerDocument, "docType shouldn't have ownerDocument!\n");
ok(!docType1.ownerDocument, "docType shouldn't have ownerDocument!");
var doc1 = document.implementation.createDocument(null, null, docType1);
is(docType1.ownerDocument, doc1, "docType should have ownerDocument!\n");
is(docType1.ownerDocument, doc1, "docType should have ownerDocument!");
ok(!doc1.documentElement, "Document shouldn't have document element!");
ok(!(doc1 instanceof Components.interfaces.nsIDOMHTMLDocument),
"Document shouldn't be an HTML document!");