Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-textarea.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>text field selection (textarea)</title>
4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
5 <link rel=help href="https://html.spec.whatwg.org/multipage/#textFieldSelection" >
6 <script src="../../../../../../resources/testharness.js"></script>
7 <script src="../../../../../../resources/testharnessreport.js"></script>
8 <div id="log"></div>
9 <script>
10 test(function() {
11 var el = document.createElement("textarea");
12 assert_equals(el.selectionStart, 0);
13 assert_equals(el.selectionEnd, 0);
14 el.selectionStart = 1;
15 el.selectionEnd = 1;
16 el.selectionDirection = "forward";
17 el.setRangeText("foobar");
18 el.setSelectionRange(0, 1);
19 }, "text field selection for the input textarea");
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698