blob: b6bcaf16ccea31a1e0d5decd229ff9bf8f5b3d7a [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ enableEditableImages=true ] -->
<head>
<script src="../../resources/ui-helper.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
addEventListener("load", async () => {
const initialNumberOfStrokesInEditableImage = (await UIHelper.numberOfStrokesInEditableImage());
await UIHelper.drawSquareInEditableImage();
const numberOfStrokesInEditableImageAfterDrawing = (await UIHelper.numberOfStrokesInEditableImage());
document.getElementById("log").innerHTML = `Had ${initialNumberOfStrokesInEditableImage} strokes in editable image before drawing.<br/>Had ${numberOfStrokesInEditableImageAfterDrawing} stroke in editable image after drawing.`;
testRunner.notifyDone();
});
</script>
</head>
<body>
<div id="log"></div>
<img x-apple-editable-image="true" width="300" height="300">
</body>