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

Side by Side Diff: LayoutTests/fast/dom/document-body-getter-setter-expected.txt

Issue 98543011: Improve Document exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Node. Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Tests getting and assigning values to document.body 1 Tests getting and assigning values to document.body
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS successfullyParsed is true 6 PASS successfullyParsed is true
7 7
8 TEST COMPLETE 8 TEST COMPLETE
9 PASS frame.contentDocument.body = document.createElement("div") threw exception HierarchyRequestError: A Node was inserted somewhere it doesn't belong.. 9 PASS frame.contentDocument.body = document.createElement("div") threw exception 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. .
10 PASS frame.contentDocument.body = document.createElement("frameset") did not thr ow exception. 10 PASS frame.contentDocument.body = document.createElement("frameset") did not thr ow exception.
11 PASS frame.contentDocument.documentElement.childNodes.length is 2 11 PASS frame.contentDocument.documentElement.childNodes.length is 2
12 PASS frame.contentDocument.body = document.createElement("body") did not throw e xception. 12 PASS frame.contentDocument.body = document.createElement("body") did not throw e xception.
13 PASS frame.contentDocument.documentElement.childNodes.length is 2 13 PASS frame.contentDocument.documentElement.childNodes.length is 2
14 PASS observer.takeRecords().length is 0 14 PASS observer.takeRecords().length is 0
15 PASS frame.contentDocument.body is newBody 15 PASS frame.contentDocument.body is newBody
16 PASS frame.contentDocument.body is newBody 16 PASS frame.contentDocument.body is newBody
17 PASS frame.contentDocument.body.tagName is "BODY" 17 PASS frame.contentDocument.body.tagName is "BODY"
18 18
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/document-body-getter-setter.html ('k') | LayoutTests/fast/dom/importNode-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698