Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html b/third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3f52a2d2506849df6f4c38c7d9f04be8e5522afd |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
|
chrishtr
2017/06/01 00:47:07
You can use testharnness to avoid the -expected.tx
|
| +<html> |
| +<head> |
| +<script> |
| +function runTest() { |
| + if (!window.testRunner) |
| + return; |
| + |
| + var input = document.getElementById('test'); |
| + input.focus(); |
| + textInputController.setComposition('Hello, world!'); |
| + input.selectionStart = 0; |
| + input.selectionEnd = 13; |
| +} |
| +</script> |
| +</head> |
| +<body onload="runTest()"> |
| +<input id="test" /> |
| +</body> |