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> |