Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/other/password-bidi-dblclick.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<meta charset=utf-8>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<input id="pwd" type="password" value="foo‮bar‬"></input>
<script>
promise_test(async () => {
let actions = new test_driver.Actions();
await actions
.pointerMove( 1, 1, { origin: pwd } )
.pointerDown( { button: actions.ButtonType.LEFT } )
.pointerUp( { button: actions.ButtonType.LEFT } )
.pointerDown( { button: actions.ButtonType.LEFT } )
.pointerUp( { button: actions.ButtonType.LEFT } )
.send();
assert_true(true, 'double-click sent');
}, 'Double-clicking the password field should not crash' );
</script>