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> |