~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/autocorrection/continue-typing-to-dismiss-reversion.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
 
 
4
<style>
 
5
.editing {
 
6
    border: 2px solid red;
 
7
    padding: 12px;
 
8
    font-size: 24px;
 
9
}
 
10
</style>
 
11
<script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
 
12
 
 
13
<script>
 
14
function editingTest() {
 
15
    typeCharacterCommand('t');
 
16
    typeCharacterCommand('h');
 
17
    typeCharacterCommand('e');
 
18
    typeCharacterCommand(' ');
 
19
    typeCharacterCommand('m');
 
20
    typeCharacterCommand('e');
 
21
    typeCharacterCommand('s');
 
22
    typeCharacterCommand('a');
 
23
    typeCharacterCommand('g');
 
24
    typeCharacterCommand('e');
 
25
    typeCharacterCommand(' ');
 
26
    execMoveSelectionBackwardByCharacterCommand();
 
27
}
 
28
 
 
29
</script>
 
30
 
 
31
<title>Continue Typing to Dismiss Reversion Panel Test</title>
 
32
</head>
 
33
<body>
 
34
<div><p>This test verifies that, after reversion panel is shown, continue typing will dismiss the reversion panel.</p>
 
35
<p>After seeing the reversion panel, start typing (excluding whitespace). You should see the panel being
 
36
dismissed once you start typing.</p>
 
37
<p  style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously 
 
38
frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
 
39
<div contenteditable id="root" class="editing">
 
40
<span id="test"></span>
 
41
</div>
 
42
 
 
43
 
 
44
<script>
 
45
runEditingTest();
 
46
</script>
 
47
 
 
48
</body>
 
49
</html>