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

Side by Side Diff: LayoutTests/fast/dom/Range/deleteContents-doctype.html

Issue 451403002: Range.deleteContents shouldn't throw HierarchyRequestError on doctype (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take review comment into consideration Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/deleteContents-doctype-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
Yuta Kitamura 2014/08/13 03:02:40 super-nit/optional: it is recommended to spell DOC
kangil_ 2014/08/13 04:49:28 Done.
2 <script src="../../../resources/js-test.js"></script>
3 <div id="container">
4 <p>This test verifies if Range.deleteContents can handle doctype.</p>
Yuta Kitamura 2014/08/13 03:02:40 With js-test, the test description should be emitt
kangil_ 2014/08/13 04:49:28 Done.
5 </div>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
Yuta Kitamura 2014/08/13 03:02:40 js-test calls dumpAsText() on your behalf, so you
kangil_ 2014/08/13 04:49:28 Done.
9
10 var range = document.createRange();
11 range.setStart(document, 0);
12 range.setEnd(document, 1);
13
14 shouldNotThrow("range.deleteContents()");
15
16 if (window.testRunner)
17 document.getElementById('container').outerHTML = '';
Yuta Kitamura 2014/08/13 03:02:40 Please don't remove the test description; just lea
kangil_ 2014/08/13 04:49:28 Done.
18 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/deleteContents-doctype-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698