ddEventListener("DOMContentLoaded", () => {
  promise_test(async () => {
    const editingHost = document.querySelector("span[contenteditable]");
    const utils = new EditorTestUtils(editingHost);
    utils.setupEditingHost("a b[]");
    await utils.sendBackspaceKey(utils.deleteWordModifier);
    assert_in_array(editingHost.innerHTML, ["a <br>", "a&nbsp;"]);
  });
}, {once: true});
</script>
</head>
<body>
  <span contenteditable style="display: inline-block"></span>
</body>
</html>
