| Index: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/insertAdjacentHTML-errors.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/insertAdjacentHTML-errors.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/insertAdjacentHTML-errors.html
|
| index 8e5b7fd16dc26a3450eff5095f633c94910d1ce3..3d8ba740ab083fa1d7ca571dfd62aab284c95f5b 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/insertAdjacentHTML-errors.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/insertAdjacentHTML-errors.html
|
| @@ -4,6 +4,16 @@
|
| <script src="../../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/insertAdjacentHTML-errors.js"></script>
|
| +<script>
|
| +description('Test insertAdjacentHTML exceptions to make sure they match HTML5');
|
| +
|
| +var div = document.createElement("div");
|
| +
|
| +shouldThrow("div.insertAdjacentHTML('beforeBegin', 'text')", '"NoModificationAllowedError: Failed to execute \'insertAdjacentHTML\' on \'Element\': The element has no parent."');
|
| +shouldThrow("div.insertAdjacentHTML('afterEnd', 'text')", '"NoModificationAllowedError: Failed to execute \'insertAdjacentHTML\' on \'Element\': The element has no parent."');
|
| +
|
| +shouldThrow("div.insertAdjacentHTML('FOO', 'text')", '"SyntaxError: Failed to execute \'insertAdjacentHTML\' on \'Element\': The value provided (\'FOO\') is not one of \'beforeBegin\', \'afterBegin\', \'beforeEnd\', or \'afterEnd\'."');
|
| +shouldThrow("document.documentElement.insertAdjacentHTML('afterEnd', 'text')", '"NoModificationAllowedError: Failed to execute \'insertAdjacentHTML\' on \'Element\': The element has no parent."');
|
| +</script>
|
| </body>
|
| </html>
|
|
|