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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/deleteContents-doctype-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Range/deleteContents-doctype.html
diff --git a/LayoutTests/fast/dom/Range/deleteContents-doctype.html b/LayoutTests/fast/dom/Range/deleteContents-doctype.html
new file mode 100644
index 0000000000000000000000000000000000000000..e9bc9b222dc74e81667c46feeeb68af972466707
--- /dev/null
+++ b/LayoutTests/fast/dom/Range/deleteContents-doctype.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<div id="container">
+</div>
+<script>
+description("This test verifies if Range.deleteContents can handle doctype.");
+
+var range = document.createRange();
+range.setStart(document, 0);
+range.setEnd(document, 1);
+
+shouldNotThrow("range.deleteContents()");
+</script>
« 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