blob: 300ff33548690147a763c1666a31c56138470bc1 [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('i');
typeCharacterCommand('s');
typeCharacterCommand(' ');
typeCharacterCommand('w');
typeCharacterCommand('a');
typeCharacterCommand('s');
typeCharacterCommand('n');
typeCharacterCommand('\'');
typeCharacterCommand('t');
typeCharacterCommand(' ');
typeCharacterCommand('\n');
typeCharacterCommand('t');
typeCharacterCommand('h');
typeCharacterCommand('i');
typeCharacterCommand('s');
typeCharacterCommand(' ');
typeCharacterCommand('w');
typeCharacterCommand('o');
typeCharacterCommand('u');
typeCharacterCommand('l');
typeCharacterCommand('d');
typeCharacterCommand('n');
typeCharacterCommand('\'');
typeCharacterCommand('t');
typeCharacterCommand(' ');
typeCharacterCommand('\n');
typeCharacterCommand('t');
typeCharacterCommand('h');
typeCharacterCommand('i');
typeCharacterCommand('s');
typeCharacterCommand(' ');
typeCharacterCommand('d');
typeCharacterCommand('o');
typeCharacterCommand('e');
typeCharacterCommand('s');
typeCharacterCommand('n');
typeCharacterCommand('\'');
typeCharacterCommand('t');
typeCharacterCommand(' ');
typeCharacterCommand('\n');
typeCharacterCommand('w');
typeCharacterCommand('o');
typeCharacterCommand('u');
typeCharacterCommand('l');
typeCharacterCommand('d');
typeCharacterCommand('n');
typeCharacterCommand(' ');
typeCharacterCommand('w');
typeCharacterCommand('o');
typeCharacterCommand('u');
typeCharacterCommand('l');
typeCharacterCommand('d');
typeCharacterCommand('n');
typeCharacterCommand('\'');
typeCharacterCommand('t');
typeCharacterCommand('\n');
typeCharacterCommand('w');
typeCharacterCommand('o');
typeCharacterCommand('u');
typeCharacterCommand('l');
typeCharacterCommand('d');
typeCharacterCommand('n');
typeCharacterCommand('\'');
typeCharacterCommand(' ');
typeCharacterCommand('w');
typeCharacterCommand('o');
typeCharacterCommand('u');
typeCharacterCommand('l');
typeCharacterCommand('d');
typeCharacterCommand('n');
typeCharacterCommand('\'');
typeCharacterCommand('t');
typeCharacterCommand(' ');
}
</script>
<title>Autocorrection Contraction Test</title>
</head>
<body>
<div>This test verifies that valid word in contraction form has neither spelling error nor autocorrection underlines.</div>
<div contenteditable id="root" class="editing">
<span id="test"></span>
</div>
<script>
runEditingTest();
</script>
</body>
</html>