Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: LayoutTests/fast/ime/composition-offsets.html

Issue 1162853002: Remove IME API from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove interface in WebWidgets.h Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/ime/composition-offsets.html
diff --git a/LayoutTests/fast/ime/composition-offsets.html b/LayoutTests/fast/ime/composition-offsets.html
deleted file mode 100644
index 33b369323d844de3751b3ed61ed0442cdb4fd466..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/ime/composition-offsets.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<input id="input"><textarea id="textarea"></textarea>
-<script>
-description('This tests composition{Start,End}Offset attributes of InputMethodContext.');
-
-var input = document.getElementById('input');
-var context = input.inputMethodContext;
-input.focus();
-
-textInputController.setMarkedText('abcde', 1, 3);
-shouldEvaluateTo('context.compositionStartOffset', 0);
-shouldEvaluateTo('context.compositionEndOffset', 5);
-context.confirmComposition();
-shouldBeEqualToString('input.value', 'abcde');
-
-textInputController.setMarkedText('fgh', 0, 3);
-shouldEvaluateTo('context.compositionStartOffset', 5);
-shouldEvaluateTo('context.compositionEndOffset', 8);
-context.confirmComposition();
-shouldBeEqualToString('input.value', 'abcdefgh');
-
-input.value = '12345';
-input.selectionStart = 3;
-input.selectionEnd = 3;
-textInputController.setMarkedText('XYZ', 0, 3);
-shouldBeEqualToString('input.value', '123XYZ45');
-shouldEvaluateTo('context.compositionStartOffset', 3);
-shouldEvaluateTo('context.compositionEndOffset', 6);
-context.confirmComposition();
-
-var textarea = document.getElementById('textarea');
-var context2 = textarea.inputMethodContext;
-textarea.focus();
-
-textInputController.setMarkedText('abcde', 1, 3);
-shouldEvaluateTo('context2.compositionStartOffset', 0);
-shouldEvaluateTo('context2.compositionEndOffset', 5);
-context2.confirmComposition();
-shouldBeEqualToString('textarea.value', 'abcde');
-
-textInputController.setMarkedText('fgh', 0, 3);
-shouldEvaluateTo('context2.compositionStartOffset', 5);
-shouldEvaluateTo('context2.compositionEndOffset', 8);
-context2.confirmComposition();
-shouldBeEqualToString('textarea.value', 'abcdefgh');
-
-textarea.value = '12345';
-textarea.selectionStart = 3;
-textarea.selectionEnd = 3;
-textInputController.setMarkedText('XYZ', 0, 3);
-shouldBeEqualToString('textarea.value', '123XYZ45');
-shouldEvaluateTo('context2.compositionStartOffset', 3);
-shouldEvaluateTo('context2.compositionEndOffset', 6);
-context2.confirmComposition();
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/fast/ime/candidatewindowevent-expected.txt ('k') | LayoutTests/fast/ime/composition-offsets-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698