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

Side by Side Diff: LayoutTests/fast/ime/candidatewindowevent.html

Issue 1162853002: Remove IME API from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove interface in WebWidgets.h Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <input id="input">
7 <script>
8 description('This tests if candidatewindow events work for InputMethodContext.') ;
9
10 function logCandidateWindowShow(event) {
11 shouldBeEqualToString('event.type', 'candidatewindowshow');
12 }
13
14 function logCandidateWindowUpdate(event) {
15 shouldBeEqualToString('event.type', 'candidatewindowupdate');
16 }
17
18 function logCandidateWindowHide(event) {
19 shouldBeEqualToString('event.type', 'candidatewindowhide');
20 }
21
22 var input = document.getElementById('input');
23 var context = input.inputMethodContext;
24 context.addEventListener('candidatewindowshow', logCandidateWindowShow, false);
25 context.addEventListener('candidatewindowupdate', logCandidateWindowUpdate, fals e);
26 context.addEventListener('candidatewindowhide', logCandidateWindowHide, false);
27 var e1 = new Event('candidatewindowshow', {});
28 context.dispatchEvent(e1);
29 var e2 = new Event('candidatewindowupdate', {});
30 context.dispatchEvent(e2);
31 var e3 = new Event('candidatewindowhide', {});
32 context.dispatchEvent(e3);
33
34 document.body.removeChild(input);
35 context.dispatchEvent(e1);
36 context.dispatchEvent(e2);
37 context.dispatchEvent(e3);
38 </script>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698