diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebCore/manual-tests/autocorrection/close-window-when-correction-is-shown.html | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebCore/manual-tests/autocorrection/close-window-when-correction-is-shown.html')
-rw-r--r-- | Source/WebCore/manual-tests/autocorrection/close-window-when-correction-is-shown.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/autocorrection/close-window-when-correction-is-shown.html b/Source/WebCore/manual-tests/autocorrection/close-window-when-correction-is-shown.html new file mode 100644 index 0000000..5c82a20 --- /dev/null +++ b/Source/WebCore/manual-tests/autocorrection/close-window-when-correction-is-shown.html @@ -0,0 +1,48 @@ +<html> +<head> + +<style> +.editing { + border: 2px solid red; + padding: 12px; + font-size: 24px; +} +</style> +<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script> + +<script> +function editingTest() { + typeCharacterCommand('t'); + typeCharacterCommand('h'); + typeCharacterCommand('e'); + typeCharacterCommand(' '); + typeCharacterCommand('m'); + typeCharacterCommand('e'); + typeCharacterCommand('s'); + typeCharacterCommand('a'); + typeCharacterCommand('e'); + typeCharacterCommand('g'); + typeCharacterCommand('e'); + typeCharacterCommand('e'); + typeCharacterCommand(' '); + execMoveSelectionBackwardByCharacterCommand(); +} + +</script> + +<title>Testing closing window when correction suggestion is shown</title> +</head> +<body> +<div><p>This test verifies that when correction suggestion is visible, closing window doesn't hang or crash.</p> +<p>After seeing the panel with multiple candidates, close the window.</p> +<div contenteditable id="root" class="editing"> +<span id="test"></span> +</div> + + +<script> +runEditingTest(); +</script> + +</body> +</html> |