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

Unified Diff: LayoutTests/fast/ime/html-getinputcontext.html

Issue 23526025: Add test for getting different InputMethodContext for different elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for comments Created 7 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/ime/html-getinputcontext-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/ime/html-getinputcontext.html
diff --git a/LayoutTests/fast/ime/html-getinputcontext.html b/LayoutTests/fast/ime/html-getinputcontext.html
index 413ce3f163605f4c279aa5c78ca4c354ffe71a30..9436ba6cb723dc485f6498810f050831fc09e8d2 100644
--- a/LayoutTests/fast/ime/html-getinputcontext.html
+++ b/LayoutTests/fast/ime/html-getinputcontext.html
@@ -3,6 +3,7 @@
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
+<input id="input"><input id="input2">
<script>
description("This tests inputMethodContext attribute which is an additional interface for HTMLElement.");
@@ -23,6 +24,11 @@ shouldBeTrue('context instanceof InputMethodContext');
var context2 = html.inputMethodContext;
shouldBeTrue('context2 instanceof InputMethodContext');
shouldBeTrue('context === context2');
+
+// Checks if contexts for different elements are different.
+var inputContext = document.getElementById('input').inputMethodContext;
+var input2Context = document.getElementById('input2').inputMethodContext;
+shouldNotBe('inputContext', 'input2Context');
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/ime/html-getinputcontext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698