Index: LayoutTests/fast/text/chromium-mac-duplicate-ime-composition.html |
diff --git a/LayoutTests/fast/text/chromium-mac-duplicate-ime-composition.html b/LayoutTests/fast/text/chromium-mac-duplicate-ime-composition.html |
index 5ea0ca8648bbc618a8ca7e181acdead1a1c89d66..f4c9b75c4253a10ba7ce7edc14e01f204a264a4e 100644 |
--- a/LayoutTests/fast/text/chromium-mac-duplicate-ime-composition.html |
+++ b/LayoutTests/fast/text/chromium-mac-duplicate-ime-composition.html |
@@ -1,5 +1,6 @@ |
<html> |
<head> |
+ <script src="../../resources/run-after-display.js"></script> |
<script> |
function check(expect, actual) { |
var console = document.getElementById('console'); |
@@ -19,17 +20,18 @@ |
textarea.addEventListener('keydown', function (e) { |
textarea.style['overflow'] = 'hidden'; |
}); |
- testRunner.display(); |
- textarea.focus(); |
- if (textInputController.setComposition) { |
- // Emulates start input method conversion. |
- textInputController.setComposition('first'); |
- // Then, emulates change of the composition text of the input method. |
- textInputController.setComposition('second'); |
- // Checks whether the textarea does not contain the first composition. |
- check('second', textarea.value); |
- } |
- testRunner.notifyDone(); |
+ runAfterDisplay(function() { |
+ textarea.focus(); |
+ if (textInputController.setComposition) { |
+ // Emulates start input method conversion. |
+ textInputController.setComposition('first'); |
+ // Then, emulates change of the composition text of the input method. |
+ textInputController.setComposition('second'); |
+ // Checks whether the textarea does not contain the first composition. |
+ check('second', textarea.value); |
+ } |
+ testRunner.notifyDone(); |
+ }); |
} |
</script> |
</head> |