32 lines
1007 B
HTML
32 lines
1007 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="../../resources/js-test.js"></script>
|
|
<script src="resources/util.js"></script>
|
|
</head>
|
|
<body>
|
|
<div>Spell check does not crash after Ctrl-X/Ctrl-V/type text in ASAN. To test manually, type 'A', Ctrl-A, Ctrl-X, Ctrl-V, and start typing again. The test succeeds when there's no crash in the last step.</div>
|
|
<div id="container">
|
|
<div id="destination" contentEditable>
|
|
A simple test for a spell check.
|
|
</div>
|
|
</div>
|
|
<div id="console"></div>
|
|
<script>
|
|
onload = initSpellTest("destination", "Spell wellcome. Is it broken?", function(textNode) {
|
|
var behaviors = ["windows", "mac"];
|
|
for (var i = 0; i < behaviors.length; i++) {
|
|
internals.settings.setEditingBehavior(behaviors[i]);
|
|
document.execCommand("SelectAll");
|
|
document.execCommand("Cut");
|
|
document.execCommand("Paste");
|
|
document.execCommand("InsertText", false, "A");
|
|
}
|
|
|
|
testPassed("Did not crash");
|
|
finishJSTest();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|