Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
LayoutTests
/
editing
/
selection
/
selection-toString-textarea.html
blob: eaccf3d358169a9ac7a84595ae266214a1df7a31 [
file
] [
log
] [
blame
] [
edit
]
<!DOCTYPE html>
<script
src
=
"../../resources/js-test.js"
></script>
<textarea
id
=
"textarea"
>
hello, world
</textarea>
<script>
textarea
.
focus
();
textarea
.
setSelectionRange
(
0
,
5
);
shouldBeEqualToString
(
'getSelection().toString()'
,
'hello'
);
</script>