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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 5daf8cb8fb58cf743ce958e067240106b2e25613..78da090c22a76f51424ac17ba4faa6907c4bcf1f 100644
--- a/LayoutTests/fast/dom/XMLSerializer-doctype2.html
+++ b/LayoutTests/fast/dom/XMLSerializer-doctype2.html
@@ -19,10 +19,10 @@
var text = serializer.serializeToString(docType);
debug("FAIL: XMLSerializer.serializeToString() should throw an exception if it tries to serialize a documentless DocumentType node.");
} catch (e) {
- if (e == "Error: InvalidAccessError: DOM Exception 15")
+ 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 INVALID_ACCESS_ERR DOMExeption if it tries to serialize a documentless DocumentType node.");
+ debug("FAIL: XMLSerializer.serializeToString() should throw an InvalidAccessError DOMExeption if it tries to serialize a documentless DocumentType node.");
}
}
</script>

Powered by Google App Engine
This is Rietveld 408576698