Chromium Code Reviews| Index: LayoutTests/fast/text/caret-crash.html |
| diff --git a/LayoutTests/fast/text/caret-crash.html b/LayoutTests/fast/text/caret-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2e84112dc8dcad233d80d750b9a9fd68a8cc69af |
| --- /dev/null |
| +++ b/LayoutTests/fast/text/caret-crash.html |
| @@ -0,0 +1,17 @@ |
| +<!DOCTYPE HTML> |
| +<body> |
| +This test passes if it does not crash. |
| +<script> |
| +testRunner.waitUntilDone(); |
|
Xianzhu
2014/12/11 23:26:19
if (window.testRunner)...
|
| +testRunner.dumpAsText(); |
| + |
| +internals.settings.setCaretBrowsingEnabled(false); |
| +testRunner.displayAsyncThen(function() { |
| + internals.settings.setCaretBrowsingEnabled(true); |
| + document.body.innerHTML += "PASS"; |
| + testRunner.displayAsyncThen(function() { |
| + testRunner.notifyDone(); |
| + }); |
| +}); |
| +</script> |
| +</body> |