This changes the test result, as the input element gets focused as it should be. We probably need to look into excluding the contents of password inputs from getSelection().toString() when the selection encompasses the input at some point.
10 lines
268 B
HTML
10 lines
268 B
HTML
<!doctype html>
|
|
<script src="include.js"></script>
|
|
<input type="password" value="well hello friends" />
|
|
<script>
|
|
test(() => {
|
|
internals.click(20, 20);
|
|
internals.click(20, 20, 2);
|
|
println(window.getSelection().toString());
|
|
});
|
|
</script>
|