| Index: LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-textarea.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-textarea.html b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-textarea.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bf7099d7d2f5cece037fb870f7413e57c03dc040
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-textarea.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<meta charset=utf-8>
|
| +<title>text field selection (textarea)</title>
|
| +<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
|
| +<link rel=help href="https://html.spec.whatwg.org/multipage/#textFieldSelection">
|
| +<script src="../../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../../resources/testharnessreport.js"></script>
|
| +<div id="log"></div>
|
| +<script>
|
| + test(function() {
|
| + var el = document.createElement("textarea");
|
| + assert_equals(el.selectionStart, 0);
|
| + assert_equals(el.selectionEnd, 0);
|
| + el.selectionStart = 1;
|
| + el.selectionEnd = 1;
|
| + el.selectionDirection = "forward";
|
| + el.setRangeText("foobar");
|
| + el.setSelectionRange(0, 1);
|
| + }, "text field selection for the input textarea");
|
| +</script>
|
|
|