| Index: third_party/WebKit/LayoutTests/editing/spelling/grammar.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/spelling/grammar.html b/third_party/WebKit/LayoutTests/editing/spelling/grammar.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..408c4e257ad36317885e2187657bd4dc08098493
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/spelling/grammar.html
|
| @@ -0,0 +1,48 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +
|
| +<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() {
|
| + if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| + document.getElementById("root").focus();
|
| + document.execCommand("InsertText", false, "I have a issue.");
|
| +
|
| + if (window.internals) {
|
| + shouldBecomeEqual('internals.hasGrammarMarker(document, 7, 1)', 'true', function() {
|
| + document.getElementById("root").style.display = "none";
|
| + finishJSTest();
|
| + });
|
| + }
|
| +}
|
| +
|
| +</script>
|
| +
|
| +<title>Editing Test</title>
|
| +</head>
|
| +<body>
|
| +<div contenteditable id="root" class="editing"></div>
|
| +<script>
|
| +description("This tests whether the grammatically-incorrect phrase "
|
| + + "'I have a issue' has grammar marker on 'a'.");
|
| +
|
| +jsTestIsAsync = true;
|
| +
|
| +if (window.internals)
|
| + internals.settings.setUnifiedTextCheckerEnabled(true);
|
| +
|
| +editingTest();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|