blob: b2da0c64e3f0b61172f4f199416089346c7d13ea [file] [edit]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/ui-helper.js"></script>
<style>
[contenteditable] {
font-size: 16px;
width: 300px;
height: 100px;
caret-color: transparent;
}
</style>
</head>
<body>
<div contenteditable></div>
<script>
let editor = document.querySelector("[contenteditable]");
if (window.testRunner)
testRunner.waitUntilDone();
addEventListener("load", async () => {
editor.focus();
if (!window.testRunner)
return;
for (let character of [..."I want to celeb"]) {
await UIHelper.typeCharacter(character);
await UIHelper.ensurePresentationUpdate();
}
await UIHelper.setInlinePrediction("celebrate", 5);
await UIHelper.ensurePresentationUpdate();
testRunner.notifyDone();
});
</script>
</body>
</html>