summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/autocorrection
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/manual-tests/autocorrection')
-rw-r--r--Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html2
-rw-r--r--Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html18
-rw-r--r--Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html9
-rw-r--r--Source/WebCore/manual-tests/autocorrection/continue-typing-to-dismiss-reversion.html2
-rw-r--r--Source/WebCore/manual-tests/autocorrection/delete-to-dismiss-reversion.html2
-rw-r--r--Source/WebCore/manual-tests/autocorrection/delete-to-end-of-word-to-show-reversion.html8
-rw-r--r--Source/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html2
-rw-r--r--Source/WebCore/manual-tests/autocorrection/move-to-end-of-word-to-show-reversion.html8
-rw-r--r--Source/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html2
-rw-r--r--Source/WebCore/manual-tests/autocorrection/spell-checking-after-reversion.html53
-rw-r--r--Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html2
11 files changed, 68 insertions, 40 deletions
diff --git a/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html b/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html
index 185e5c6..e6af6ec 100644
--- a/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html
+++ b/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
diff --git a/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html b/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html
index 9637195..3e78bb1 100644
--- a/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html
+++ b/Source/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html
@@ -8,21 +8,9 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
- if (window.layoutTestController)
- layoutTestController.waitUntilDone();
-
-function keepTyping() {
- typeCharacterCommand('i');
- typeCharacterCommand('n');
- typeCharacterCommand('g');
- typeCharacterCommand(' ');
- if (window.layoutTestController)
- layoutTestController.notifyDone();
-}
-
function editingTest() {
typeCharacterCommand('t');
typeCharacterCommand('h');
@@ -35,7 +23,6 @@ function editingTest() {
typeCharacterCommand('a');
typeCharacterCommand('p');
typeCharacterCommand('s');
- setTimeout("keepTyping()", 1000);
}
</script>
@@ -43,8 +30,7 @@ function editingTest() {
<title>Autocorrection Cancellation By Typing Test</title>
</head>
<body>
-<div>This test verifies that autocorrection behaves correctly when continuing typing in a word on
-which autocorrection panel is hown. You should see correction panel showing 'collapse' after 'collaps' is entered. And after a pause, phrase 'the collapsing' is shown without underline.</div>
+<div>This test verifies that autocorrection behaves correctly when continuing typing in a word on which autocorrection panel is hown. You should see correction panel showing 'collapse' after 'collaps' is entered. Then type "ing". Phrase 'the collapsing' should be shown without underline.</div>
<p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'collapse' as the correct spelling of 'collaps' several times, the spell checker will not provide 'collapse' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling.</p>
<div contenteditable id="root" class="editing">
<span id="test"></span>
diff --git a/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html b/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html
index ef5bb68..39ad7f7 100644
--- a/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html
+++ b/Source/WebCore/manual-tests/autocorrection/autocorrection-contraction.html
@@ -8,15 +8,9 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
-function keepTyping() {
- typeCharacterCommand('\'');
- typeCharacterCommand('t');
- typeCharacterCommand(' ');
-}
-
function editingTest() {
typeCharacterCommand('t');
typeCharacterCommand('h');
@@ -29,7 +23,6 @@ function editingTest() {
typeCharacterCommand('l');
typeCharacterCommand('d');
typeCharacterCommand('n');
- setTimeout("keepTyping()", 1000);
}
</script>
diff --git a/Source/WebCore/manual-tests/autocorrection/continue-typing-to-dismiss-reversion.html b/Source/WebCore/manual-tests/autocorrection/continue-typing-to-dismiss-reversion.html
index b8521c0..a1011fa 100644
--- a/Source/WebCore/manual-tests/autocorrection/continue-typing-to-dismiss-reversion.html
+++ b/Source/WebCore/manual-tests/autocorrection/continue-typing-to-dismiss-reversion.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
diff --git a/Source/WebCore/manual-tests/autocorrection/delete-to-dismiss-reversion.html b/Source/WebCore/manual-tests/autocorrection/delete-to-dismiss-reversion.html
index c39b2ac..bbaa77d 100644
--- a/Source/WebCore/manual-tests/autocorrection/delete-to-dismiss-reversion.html
+++ b/Source/WebCore/manual-tests/autocorrection/delete-to-dismiss-reversion.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
diff --git a/Source/WebCore/manual-tests/autocorrection/delete-to-end-of-word-to-show-reversion.html b/Source/WebCore/manual-tests/autocorrection/delete-to-end-of-word-to-show-reversion.html
index 320ed8c..242fcb2 100644
--- a/Source/WebCore/manual-tests/autocorrection/delete-to-end-of-word-to-show-reversion.html
+++ b/Source/WebCore/manual-tests/autocorrection/delete-to-end-of-word-to-show-reversion.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
@@ -32,10 +32,8 @@ function editingTest() {
</head>
<body>
<div><p>This test verifies that reversion panel is shown when user moves carret to previously corrected word using delete key.</p>
-<p>After seeing the reversion panel, press ESC key, then space key. You should see the phrase "the mesage"
-where "mesage" has red mispell underline. </p>
-<p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously
-frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
+<p>After seeing the reversion panel, press ESC key, then space key. You should see the phrase "the mesage". </p>
+<p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
<div contenteditable id="root" class="editing">
<span id="test"></span>
</div>
diff --git a/Source/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html b/Source/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html
index 56724f1..67171b7 100644
--- a/Source/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html
+++ b/Source/WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
diff --git a/Source/WebCore/manual-tests/autocorrection/move-to-end-of-word-to-show-reversion.html b/Source/WebCore/manual-tests/autocorrection/move-to-end-of-word-to-show-reversion.html
index 8ca2a6b..5579915 100644
--- a/Source/WebCore/manual-tests/autocorrection/move-to-end-of-word-to-show-reversion.html
+++ b/Source/WebCore/manual-tests/autocorrection/move-to-end-of-word-to-show-reversion.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
@@ -32,10 +32,8 @@ function editingTest() {
</head>
<body>
<div><p>This test verifies that reversion panel is shown when user moves carret to previously corrected word</p>
-<p>After seeing the reversion panel, press ESC key, then space key. You should see the phrase "the mesage"
-where "mesage" has red mispell underline. </p>
-<p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously
-frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
+<p>After seeing the reversion panel, press ESC key, then space key. You should see the phrase "the mesage". </p>
+<p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
<div contenteditable id="root" class="editing">
<span id="test"></span>
</div>
diff --git a/Source/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html b/Source/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html
index dc8881f..cbd1dcd 100644
--- a/Source/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html
+++ b/Source/WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
diff --git a/Source/WebCore/manual-tests/autocorrection/spell-checking-after-reversion.html b/Source/WebCore/manual-tests/autocorrection/spell-checking-after-reversion.html
new file mode 100644
index 0000000..9ea5f58
--- /dev/null
+++ b/Source/WebCore/manual-tests/autocorrection/spell-checking-after-reversion.html
@@ -0,0 +1,53 @@
+<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('c');
+ typeCharacterCommand('y');
+ typeCharacterCommand('l');
+ typeCharacterCommand('i');
+ typeCharacterCommand('n');
+ typeCharacterCommand('d');
+ typeCharacterCommand('r');
+}
+
+</script>
+
+<title>Spellchecking After Reversion Test</title>
+</head>
+<body>
+<div><p>This test verifies the behavior of spellchecking after reversion.</p>
+<ol>
+<li>After seeing the correction panel, press space to accept the correction.</li>
+<li>Press delete key to bring up reversion bubble.</li>
+<li>Press ESC key to accept the reversion suggestion.</li>
+<li>Press space key again, and verify that the word "cylindr" IS NOT marked as misspelled.</li>
+<li>Press delete key twice.</li>
+<li>Press space key again, and verify that the word "cylind" IS marked as misspelled.</li>
+</ol>
+<p style="color:green">Note, this test can fail due to user specific spell checking data. To fix this, remove all files in ~/Library/Spelling.</p>
+<div contenteditable id="root" class="editing">
+<span id="test"></span>
+</div>
+
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html b/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html
index eeea0f7..41191fb 100644
--- a/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html
+++ b/Source/WebCore/manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html
@@ -8,7 +8,7 @@
font-size: 24px;
}
</style>
-<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {