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

Side by Side Diff: LayoutTests/fast/dom/Range/script-tests/31684.js

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 description( 1 description(
2 "This test checks an orphan text node cannot be surrounded by the range. (bu g31684)" 2 "This test checks an orphan text node cannot be surrounded by the range. (bu g31684)"
3 ); 3 );
4 4
5 var range = document.createRange(); 5 var range = document.createRange();
6 var text = document.createTextNode('hello'); 6 var text = document.createTextNode('hello');
7 var element = document.createElement("div"); 7 var element = document.createElement("div");
8 range.selectNodeContents(text); 8 range.selectNodeContents(text);
9 9
10 shouldThrow("range.surroundContents(element)", '"Error: HierarchyRequestError: D OM Exception 3"'); 10 shouldThrow("range.surroundContents(element)", '"HierarchyRequestError: A Node w as inserted somewhere it doesn\'t belong."');
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Range/resources/intersectsNode.js ('k') | LayoutTests/fast/dom/Range/script-tests/range-exceptions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698