blob: d3e7b432fdf98444eb34b181b28f5623bbcf83a4 [file] [log] [blame] [edit]
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script src="../resources/ui-helper.js"></script>
<style>
input {
width: 300px;
font-size: 30px;
line-height: 40px;
background: blue;
}
</style>
</head>
<body>
<input type="text"/>
<pre id="results"></pre>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
}
(async () => {
element = document.querySelector("input");
await UIHelper.activateElementAndWaitForInputSession(element);
do {
await UIHelper.typeCharacter("a");
await UIHelper.animationFrame();
await UIHelper.ensureStablePresentationUpdate();
} while (element.value === "")
do {
await UIHelper.typeCharacter("delete");
await UIHelper.animationFrame();
await UIHelper.ensureStablePresentationUpdate();
} while (element.value !== "")
if (window.internals)
results.textContent += internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_EVENT_REGION | internals.LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES);
if (window.testRunner)
testRunner.dumpAsText();
document.activeElement.blur();
if (window.testRunner)
testRunner.notifyDone();
})();
</script>
</body>
</html>