| <!DOCTYPE html><!-- webkit-test-runner [ enableEditableImages=true ] --> |
| <script src="../../resources/ui-helper.js"></script> |
| testRunner.waitUntilDone(); |
| addEventListener("load", async () => { |
| await UIHelper.drawSquareInEditableImage(); |
| const numberOfStrokesInEditableImageAfterDrawing = (await UIHelper.numberOfStrokesInEditableImage()); |
| document.getElementById("other").appendChild(document.getElementById("editableImage")); |
| const numberOfStrokesInEditableImageAfterReparenting = (await UIHelper.numberOfStrokesInEditableImage()); |
| document.getElementById("log").innerHTML = `Had ${numberOfStrokesInEditableImageAfterDrawing} stroke in editable image after drawing.<br/>Had ${numberOfStrokesInEditableImageAfterReparenting} stroke in editable image after reparenting it under another element.`; |
| <img id="editableImage" x-apple-editable-image="true" width="300" height="300"> |