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

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: 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 <html>
2 <head>
3 </head>
4 <body>
5 <div id='test'>
6 <p id='start'>start</p>
7 <p id='end'>end</p>
8 </div>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
12
13 var range = document.createRange();
14 range.setStart(document, 0);
15 range.setEnd(document, 1);
16 try {
17 range.deleteContents();
18 console.log('Ran as expected!');
yosin_UTC9 2014/08/11 00:34:24 We can use |shouldThrow| in "js-test.js".
kangil_ 2014/08/11 00:42:20 Yes, I usually use it. But, in this case, shouldNo
yosin_UTC9 2014/08/11 02:16:42 I see. How about using document.write, document.do
kangil_ 2014/08/11 04:00:20 Done.
19 } catch (e) {
20 console.log('should not be here..' + e);
21 }
22 </script>
23 </body>
24 </html>
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