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

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
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..0659cb4f3fe8db1ee073f466cbd33598e6be64b0
--- /dev/null
+++ b/LayoutTests/fast/dom/Range/deleteContents-doctype.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<p>This test verifies if Range.deleteContents can handle doctype.</p>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var range = document.createRange();
+range.setStart(document, 0);
+range.setEnd(document, 1);
+
+range.deleteContents();
+// If Range.deleteContents() throws error, then we will not see below PASS in result.
Yuta Kitamura 2014/08/12 09:07:43 We have "shouldNotThrow()" in js-test.js to test t
kangil_ 2014/08/12 10:41:26 Done.
+document.write('PASS');
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/deleteContents-doctype-expected.txt » ('j') | Source/core/dom/Range.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698