Chromium Code Reviews| Index: LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.html |
| diff --git a/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.html b/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..88f54e5508caec60bf9be00885bc25547bb24bd0 |
| --- /dev/null |
| +++ b/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
| +<html> |
|
leviw_travelin_and_unemployed
2014/08/07 18:39:16
Nit: your tests don't actually need html or head t
svillar
2014/08/08 09:01:25
I'll remove them.
|
| +<head> |
| +<script> |
| +if (window.testRunner) |
| + internals.toggleOverwriteModeEnabled(document); |
| + |
| +function run() { |
| + var element = (document.getElementById("editableContent")).firstChild; |
| + getSelection().collapse(element, element.length); |
| +} |
| +</script> |
| +</head> |
| +<body style = "font: 30px;" onload="run();""> |
| + <!-- We want to test block cursor appearance at the end of lines that aren't the end of the editable element. --> |
| + <div id="editableContent" contenteditable="true">ABC<br>ABC</div> |
| +</body> |
| +</html> |