39 {
40
41
43 MouseCursorChannel mouseCursorChannel = new MouseCursorChannel(mock(DartExecutor.class));
44
45 MouseCursorPlugin mouseCursorPlugin = new MouseCursorPlugin(testView, mouseCursorChannel);
46
47 final StoredResult methodResult = new StoredResult();
48 mouseCursorChannel.synthesizeMethodCall(
50 "activateSystemCursor",
51 new HashMap<String, Object>() {
52 private static final long serialVersionUID = 1
L;
53
54 {
55 put("device", 1);
56 put("kind", "text");
57 }
58 }),
59 methodResult);
60 verify(testView,
times(1)).getSystemPointerIcon(PointerIcon.TYPE_TEXT);
61 verify(testView,
times(1)).setPointerIcon(
any(PointerIcon.class));
62 assertEquals(methodResult.result, Boolean.TRUE);
63 }
static SkISize times(const SkISize &size, float factor)
SIT bool any(const Vec< 1, T > &x)