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

Unified Diff: LayoutTests/fast/dom/document-body-getter-setter.html

Issue 98543011: Improve Document exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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/document-body-getter-setter.html
diff --git a/LayoutTests/fast/dom/document-body-getter-setter.html b/LayoutTests/fast/dom/document-body-getter-setter.html
index aab57c2f6307dcead99a0ba81fd2fceffff8d6a5..44385e92e981d8a6b0298e25535ddbf1cdc2fa72 100644
--- a/LayoutTests/fast/dom/document-body-getter-setter.html
+++ b/LayoutTests/fast/dom/document-body-getter-setter.html
@@ -9,7 +9,7 @@ onload = function() {
frame = document.createElement('iframe');
document.body.appendChild(frame);
- shouldThrow('frame.contentDocument.body = document.createElement("div")', "'HierarchyRequestError: A Node was inserted somewhere it doesn\\'t belong.'");
+ shouldThrow('frame.contentDocument.body = document.createElement("div")', '"HierarchyRequestError: Failed to set the \'body\' property on \'Document\': The new body element is of type \'DIV\'. It must be either a \'BODY\' or \'FRAMESET\' element."');
shouldNotThrow('frame.contentDocument.body = document.createElement("frameset")');
shouldBe('frame.contentDocument.documentElement.childNodes.length', '2');
shouldNotThrow('frame.contentDocument.body = document.createElement("body")');

Powered by Google App Engine
This is Rietveld 408576698