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

Unified Diff: LayoutTests/fast/dom/XMLSerializer-doctype2.html

Issue 22880019: [DOM4] Doctypes now always have a node document and can be moved across document boundaries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing test Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/XMLSerializer-doctype2.html
diff --git a/LayoutTests/fast/dom/XMLSerializer-doctype2.html b/LayoutTests/fast/dom/XMLSerializer-doctype2.html
index 78da090c22a76f51424ac17ba4faa6907c4bcf1f..05ddc87dc698ac0ed6467455ae5c10cb307faabc 100644
--- a/LayoutTests/fast/dom/XMLSerializer-doctype2.html
+++ b/LayoutTests/fast/dom/XMLSerializer-doctype2.html
@@ -17,19 +17,16 @@
try {
var text = serializer.serializeToString(docType);
arv (Not doing code reviews) 2013/08/20 14:38:11 Maybe we should assert that the text is correct to
do-not-use 2013/08/20 15:31:00 Done.
- debug("FAIL: XMLSerializer.serializeToString() should throw an exception if it tries to serialize a documentless DocumentType node.");
+ debug("PASS: XMLSerializer.serializeToString() serialized the newly created DocumentType node without throwing.");
} catch (e) {
- if (e == "InvalidAccessError: A parameter or an operation was not supported by the underlying object.")
- debug("PASS: an " + e + " was thrown as expected.")
- else
- debug("FAIL: XMLSerializer.serializeToString() should throw an InvalidAccessError DOMExeption if it tries to serialize a documentless DocumentType node.");
+ debug("FAIL: an " + e + " was thrown as expected.")
}
}
</script>
</head>
<body onload="runTests()">
arv (Not doing code reviews) 2013/08/20 14:38:11 no need to wait for onload
do-not-use 2013/08/20 15:31:00 Done.
-This tests XMLSerializer.serializeToString() on a DocumentType node that does not have a document associated
-with it. It should throw an INVALID_ACCESS_ERR DOMException.
+This tests XMLSerializer.serializeToString() on a newly created DocumentType node does not throw since the node has an
+associated document.
<ul id="console">
</ul>

Powered by Google App Engine
This is Rietveld 408576698