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..0b5b31a4016572167d4aa4334af1e29e9eb98d64 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Range/deleteContents-doctype.html |
@@ -0,0 +1,24 @@ |
+<html> |
+<head> |
+</head> |
+<body> |
+<div id='test'> |
+ <p id='start'>start</p> |
+ <p id='end'>end</p> |
+</div> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+var range = document.createRange(); |
+range.setStart(document, 0); |
+range.setEnd(document, 1); |
+try { |
+ range.deleteContents(); |
+ 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.
|
+} catch (e) { |
+ console.log('should not be here..' + e); |
+} |
+</script> |
+</body> |
+</html> |