haikuwebkit/LayoutTests/editing/input/style-change-during-input.html

32 lines
815 B
HTML
Raw Permalink Normal View History

<html>
<head>
Many editing js-tests use waitUntilDone https://bugs.webkit.org/show_bug.cgi?id=172401 Reviewed by Ryosuke Niwa. Corrected the use of js-test harness, updated the tests to use js-test.js instead of js-test-pre.js where possible. * editing/caret/ios/absolute-caret-position-after-scroll.html: * editing/caret/ios/fixed-caret-position-after-scroll.html: * editing/input/style-change-during-input.html: * editing/inserting/insert-html-crash.html: * editing/mac/input/undo-grouping-on-text-insertion.html: * editing/mac/selection/context-menu-select-editability-expected.txt: * editing/mac/selection/context-menu-select-editability.html: * editing/mac/spelling/accept-candidate-undo-does-not-select.html: * editing/mac/spelling/autocorrection-respets-undo-expected.txt: * editing/mac/spelling/autocorrection-respets-undo.html: * editing/pasteboard/drag-and-drop-attachment-contenteditable.html: * editing/pasteboard/drag-and-drop-image-contenteditable.html: * editing/pasteboard/drag-and-drop-inputimage-contenteditable.html: * editing/pasteboard/drag-and-drop-objectimage-contenteditable.html: * editing/pasteboard/drag-link-with-data-transfer-adds-trusted-link-to-pasteboard-expected.txt: * editing/pasteboard/drag-link-with-data-transfer-adds-trusted-link-to-pasteboard.html: * editing/selection/ios/absolute-selection-after-scroll.html: * editing/selection/ios/fixed-selection-after-scroll.html: * editing/spelling/copy-paste-crash-expected.txt: * editing/spelling/copy-paste-crash.html: * editing/style/apply-style-join-child-text-nodes-crash.html: Canonical link: https://commits.webkit.org/189414@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-05-23 20:23:23 +00:00
<script src="../../resources/js-test.js"></script>
<style>
body[style] { }
</style>
</head>
<body>
<textarea id="target"></textarea>
<div>The text field should accept typed characters.</div>
<pre id="console"></pre>
<script>
document.getElementById("target").addEventListener("textInput", function (evt) { evt.target.style.width = 100; });
Editing tests should use testRunner instead of layoutTestController https://bugs.webkit.org/show_bug.cgi?id=88955 Reviewed by Darin Adler. * editing/: * platform/blackberry/editing/text-iterator/findString-markers.html: * platform/chromium-linux/editing/selection/linux_selection_color.html: * platform/chromium-win/editing/selection/paragraph-granularity-expected.txt: * platform/chromium-win/editing/selection/triple-click-in-pre-expected.txt: * platform/chromium-win/editing/selection/word-granularity-expected.txt: * platform/chromium/editing/spelling/delete-misspelled-word.html: * platform/chromium/editing/spelling/move-cursor-to-misspelled-word.html: * platform/gtk/editing/pasteboard/middle-button-paste.html: * platform/gtk/editing/pasteboard/script-tests/middle-click-onpaste.js: * platform/gtk/editing/selection/caret-mode-document-begin-end.html: * platform/gtk/editing/selection/paragraph-granularity-expected.txt: * platform/gtk/editing/selection/triple-click-in-pre-expected.txt: * platform/gtk/editing/selection/word-granularity-expected.txt: * platform/mac/editing/: * platform/qt/editing/selection/paragraph-granularity-expected.txt: * platform/qt/editing/selection/triple-click-in-pre-expected.txt: * platform/qt/editing/selection/word-granularity-expected.txt: * platform/win/editing/deleting/delete-start-block-expected.txt: * platform/win/editing/pasteboard/pasting-crlf-isnt-translated-to-crcrlf-win.html: * platform/win/editing/selection/shift-page-up-down.html: Canonical link: https://commits.webkit.org/106795@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-13 08:51:53 +00:00
if (window.testRunner) {
window.target = document.getElementById("target");
window.setTimeout(function() {
window.target.focus();
eventSender.keyDown("h");
eventSender.keyDown("e");
eventSender.keyDown("l");
eventSender.keyDown("l");
eventSender.keyDown("o");
shouldBe("window.target.value", '"hello"');
finishJSTest();
}, 0);
}
window.jsTestIsAsync = true;
</script>
</body>
</html>