Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src='/tests/SimpleTest/paint_listener.js'></script>
<script src='apz_test_utils.js'></script>
<script src='apz_test_native_event_utils.js'></script>
</head>
<body style="background-color:powderblue;">
<script>
document.addEventListener("keydown", function () {
document.body.style.backgroundColor = "red";
});
document.addEventListener("keyup", function () {
document.body.style.backgroundColor = "green";
});
SimpleTest.waitForExplicitFinish();
</script>
</body>
</html>