blob: 48e37e233e14f690e6464257a22f70528edf720d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!doctype html>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<input type=text>
<script>
let input = document.getElementsByTagName("input")[0];
addEventListener("load", async () => {
test_driver.set_test_context(parent);
await new test_driver.Actions()
.pointerMove(0, 0, {origin: input})
.pointerDown()
.pointerUp()
.send();
await new test_driver.Actions()
.keyDown("P")
.keyUp("P")
.keyDown("A")
.keyUp("A")
.keyDown("S")
.keyUp("S")
.keyDown("S")
.keyUp("S")
.send();
if (input.value === "PASS") {
test_driver.message_test("PASS", "*")
} else {
test_driver.message_test("FAIL", "*")
}
});
</script>
|