blob: 15f6bb87f65c38c394e98ff2b4abb7c0d5f7607c [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
<script src=../../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('g');
typeCharacterCommand('e');
typeCharacterCommand(' ');
execDeleteCommand();
execDeleteCommand();
execDeleteCommand();
execDeleteCommand();
execDeleteCommand();
execDeleteCommand();
execDeleteCommand();
execDeleteCommand();
}
</script>
<title>Delete Autocorrected Word Test 1</title>
</head>
<body>
<div>Upon success, you should only see the word "the" in text field.</div>
<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>