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

Unified Diff: LayoutTests/fast/dom/processing-instruction-appendChild-exceptions.xhtml

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/processing-instruction-appendChild-exceptions.xhtml
diff --git a/LayoutTests/fast/dom/processing-instruction-appendChild-exceptions.xhtml b/LayoutTests/fast/dom/processing-instruction-appendChild-exceptions.xhtml
index 5beaeaeb32da3db14d277719f82f55b60af83ca1..ae9987e24c457d00c66d7b14fff3ddba8288fd8a 100644
--- a/LayoutTests/fast/dom/processing-instruction-appendChild-exceptions.xhtml
+++ b/LayoutTests/fast/dom/processing-instruction-appendChild-exceptions.xhtml
@@ -5,11 +5,11 @@
<![CDATA[
description("Test that appropriate exceptions are thrown when adding children to a ProcessingInstruction.");
var pi = document.createProcessingInstruction('target', 'data');
-shouldThrow("pi.appendChild(null)", "'Error: HierarchyRequestError: DOM Exception 3'");
+shouldThrow("pi.appendChild(null)", "'HierarchyRequestError: A Node was inserted somewhere it doesn\\'t belong.'");
var div = document.createElement('div');
-shouldThrow("pi.appendChild(div)", "'Error: HierarchyRequestError: DOM Exception 3'");
+shouldThrow("pi.appendChild(div)", "'HierarchyRequestError: A Node was inserted somewhere it doesn\\'t belong.'");
var textNode = document.createTextNode('sometext');
-shouldThrow("pi.appendChild(textNode)", "'Error: HierarchyRequestError: DOM Exception 3'");
+shouldThrow("pi.appendChild(textNode)", "'HierarchyRequestError: A Node was inserted somewhere it doesn\\'t belong.'");
]]>
</script>
<script src="../js/resources/js-test-post.js"></script>

Powered by Google App Engine
This is Rietveld 408576698