g(element.selectionStart, element.selectionEnd), expectedText, "Text should be programatically selectable");
        await test_driver.send_keys(element, "\uE003");
        assert_equals(element.value, "", "Text should be cleared");
    }
    promise_test(() => {
        return testElement(document.querySelector("input"))
    }, "Test <input> with user-select: none");
    promise_test(() => {
        return testElement(document.querySelector("textarea"))
    }, "Test <textarea> with user-select: none");
   