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

Side by Side Diff: LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.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('Test insertAdjacentHTML exceptions to make sure they match HTML5'); 1 description('Test insertAdjacentHTML exceptions to make sure they match HTML5');
2 2
3 var div = document.createElement("div"); 3 var div = document.createElement("div");
4 4
5 shouldBeUndefined("div.insertAdjacentHTML('beforeBegin', 'text')"); 5 shouldBeUndefined("div.insertAdjacentHTML('beforeBegin', 'text')");
6 shouldBeUndefined("div.insertAdjacentHTML('afterEnd', 'text')"); 6 shouldBeUndefined("div.insertAdjacentHTML('afterEnd', 'text')");
7 7
8 shouldThrow("div.insertAdjacentHTML('FOO', 'text')", '"Error: SyntaxError: DOM E xception 12"'); 8 shouldThrow("div.insertAdjacentHTML('FOO', 'text')", '"SyntaxError: An invalid o r illegal string was specified."');
9 shouldThrow("document.documentElement.insertAdjacentHTML('afterEnd', 'text')", ' "Error: NoModificationAllowedError: DOM Exception 7"'); 9 shouldThrow("document.documentElement.insertAdjacentHTML('afterEnd', 'text')", ' "NoModificationAllowedError: An attempt was made to modify an object where modif ications are not allowed."');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698