Commit 5a7aa3b2 authored by kochi@chromium.org's avatar kochi@chromium.org

Add test for getting different InputMethodContext for different elements.

BUG=none
TEST=layouttest fast/ime

Review URL: https://chromiumcodereview.appspot.com/23526025

git-svn-id: svn://svn.chromium.org/blink/trunk@157439 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3125b72c
......@@ -9,6 +9,7 @@ PASS typeof(html.inputMethodContext) is "object"
PASS context instanceof InputMethodContext is true
PASS context2 instanceof InputMethodContext is true
PASS context === context2 is true
PASS inputContext is not input2Context
PASS successfullyParsed is true
TEST COMPLETE
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment