| Index: third_party/WebKit/LayoutTests/svg/text/empty-text-node-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/svg/text/empty-text-node-crash.html b/third_party/WebKit/LayoutTests/svg/text/empty-text-node-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ab4a569b4e370e35acf9688c236e12ee9af428c5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/svg/text/empty-text-node-crash.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<svg id="svg">
|
| +<g id="g"></g>
|
| +<text id="text">Fail</text>
|
| +</svg>
|
| +<script>
|
| +test(function() {
|
| + // Create an empty text node through the editing apis.
|
| + var oSelection=window.getSelection();
|
| + document.execCommand('SelectAll', false, false)
|
| + var oRange = oSelection.getRangeAt(0);
|
| + oRange.insertNode(g);
|
| + // Force the text length to be calculated.
|
| + text.getComputedTextLength();
|
| + svg.parentElement.removeChild(svg);
|
| +}, 'Empty text nodes should not crash.');
|
| +</script>
|
|
|