Home
last modified time | relevance | path

Searched refs:listener2 (Results 1 – 6 of 6) sorted by relevance

/third_party/flutter/flutter/packages/flutter/test/animation/
Diteration_patterns_test.dart25 final VoidCallback listener2 = () {
26 log.add('listener2');
33 controller.addListener(listener2);
36 expect(log, <String>['listener1', 'listener2']);
40 expect(log, <String>['listener2', 'listener4']);
44 expect(log, <String>['listener2', 'listener4', 'listener4']);
58 final AnimationStatusListener listener2 = (AnimationStatus status) {
59 log.add('listener2');
66 controller.addStatusListener(listener2);
69 expect(log, <String>['listener1', 'listener2']);
[all …]
/third_party/node/test/parallel/
Dtest-event-emitter-remove-listeners.js29 function listener2() {} function
46 ee.removeListener('hello', listener2);
53 ee.on('hello', listener2);
57 assert.deepStrictEqual([listener2], ee.listeners('hello'));
60 assert.deepStrictEqual([listener2], ee.listeners('hello'));
63 assert.strictEqual(cb, listener2);
66 ee.removeListener('hello', listener2);
94 ee.on('hello', listener2);
98 assert.deepStrictEqual([listener2], ee.listeners('hello'));
101 assert.strictEqual(cb, listener2);
[all …]
Dtest-event-emitter-listeners.js30 function listener2() {} function
56 eeListenersCopy.push(listener2);
58 assert.deepStrictEqual(eeListenersCopy, [listener, listener2]);
65 ee.on('foo', listener2);
66 assert.deepStrictEqual(ee.listeners('foo'), [listener, listener2]);
79 ee.once('foo', listener2);
80 assert.deepStrictEqual(ee.listeners('foo'), [listener, listener2]);
/third_party/flutter/flutter/packages/flutter/test/foundation/
Dchange_notifier_test.dart39 final VoidCallback listener2 = () { log.add('listener2'); };
75 test.addListener(listener2);
77 expect(log, <String>['listener', 'listener1', 'listener2']);
82 expect(log, <String>['listener', 'listener2']);
87 expect(log, <String>['listener', 'listener2', 'listener1']);
92 expect(log, <String>['listener', 'listener2', 'listener1', 'badListener']);
99 test.removeListener(listener2);
100 test.addListener(listener2);
102 expect(log, <String>['badListener', 'listener1', 'listener2']);
114 final VoidCallback listener2 = () {
[all …]
/third_party/flutter/flutter/packages/flutter/test/painting/
Dimage_stream_test.dart444 final ImageListener listener2 = (ImageInfo image, bool synchronousCall) {
448 imageStream.addListener(ImageStreamListener(listener2));
/third_party/googletest/googlemock/test/
Dgmock-matchers_test.cc328 StringMatchResultListener listener2; in TEST() local
329 EXPECT_FALSE(m.MatchAndExplain(-9, &listener2)); in TEST()
330 EXPECT_EQ("which is 9 less than 0", listener2.str()); in TEST()
3046 StringMatchResultListener listener2; in TEST() local
3047 EXPECT_FALSE(ExplainMatchResult(Ge(42), 1.5, &listener2)); in TEST()
3048 EXPECT_EQ("", listener2.str()); in TEST()
3058 StringMatchResultListener listener2; in TEST() local
3059 EXPECT_FALSE(ExplainMatchResult(is_zero, 1.5, &listener2)); in TEST()
3060 EXPECT_EQ("", listener2.str()); in TEST()