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

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: 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..5063c7bd132aa584276ba6b531889716887d8de0 100644
--- a/LayoutTests/fast/ime/html-getinputcontext.html
+++ b/LayoutTests/fast/ime/html-getinputcontext.html
@@ -3,6 +3,8 @@
<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 +25,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 input = document.getElementById('input');
+var input2 = document.getElementById('input2');
+shouldBeTrue('input != input2');
tkent 2013/09/09 00:29:19 Do you mean shouldNotBe('input.inputMethodContext'
kochi 2013/09/09 05:07:18 Oops, right - sorry for overlooking the obvious an
</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