| Index: third_party/WebKit/LayoutTests/editing/selection/addrange-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/addrange-crash.html b/third_party/WebKit/LayoutTests/editing/selection/addrange-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9503fec0a3bba2d65154a69417e6e4e50b4f82cd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/selection/addrange-crash.html
|
| @@ -0,0 +1,11 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script>
|
| +test(() => {
|
| + document.head.textContent = "Wow";
|
| + var s = getSelection();
|
| + s.collapse(document.documentElement);
|
| + s.addRange(s.getRangeAt(0).cloneRange());
|
| +}, "addRange() to a Selection with invisible selection should not crash.");
|
| +</script>
|
|
|