blob: 6a8c6840a25cb621736379677f3bb7713d6b88f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!doctype html>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<button id="button">Button</button>
<div id="log">FAIL</div>
<script>
let button = document.getElementById("button");
button.addEventListener("click", () =>
document.getElementById("log").textContent = "PASS");
addEventListener("load", () => {
test_driver.set_test_context(parent.opener);
test_driver.click(button)
.then(() => test_driver.message_test("PASS", "*"))
.catch(() => test_driver.message_test("FAIL", "*"));
});
</script>
|