Searched refs:listener1 (Results 1 – 5 of 5) sorted by relevance
/third_party/node/test/parallel/ |
D | test-event-emitter-remove-listeners.js | 27 function listener1() {} function 33 ee.on('hello', listener1); 36 assert.strictEqual(cb, listener1); 38 ee.removeListener('hello', listener1); 44 ee.on('hello', listener1); 47 assert.deepStrictEqual([listener1], ee.listeners('hello')); 52 ee.on('hello', listener1); 56 assert.strictEqual(cb, listener1); 59 ee.removeListener('hello', listener1); 93 ee.on('hello', listener1); [all …]
|
/third_party/flutter/flutter/packages/flutter/test/animation/ |
D | iteration_patterns_test.dart | 22 final VoidCallback listener1 = () { log.add('listener1'); }; 27 controller.removeListener(listener1); 32 controller.addListener(listener1); 36 expect(log, <String>['listener1', 'listener2']); 55 final AnimationStatusListener listener1 = (AnimationStatus status) { log.add('listener1'); }; 60 controller.removeStatusListener(listener1); 65 controller.addStatusListener(listener1); 69 expect(log, <String>['listener1', 'listener2']); 90 final VoidCallback listener1 = () { log.add('listener1'); }; 94 controller.addListener(listener1); [all …]
|
/third_party/flutter/flutter/packages/flutter/test/foundation/ |
D | change_notifier_test.dart | 38 final VoidCallback listener1 = () { log.add('listener1'); }; 70 test.addListener(listener1); 72 expect(log, <String>['listener', 'listener1']); 77 expect(log, <String>['listener', 'listener1', 'listener2']); 80 test.removeListener(listener1); 85 test.addListener(listener1); 87 expect(log, <String>['listener', 'listener2', 'listener1']); 92 expect(log, <String>['listener', 'listener2', 'listener1', 'badListener']); 96 test.addListener(listener1); 98 test.removeListener(listener1); [all …]
|
/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | image_stream_test.dart | 440 final ImageListener listener1 = (ImageInfo image, bool synchronousCall) { 447 imageStream.addListener(ImageStreamListener(listener1)); 465 imageStream.removeListener(ImageStreamListener(listener1));
|
/third_party/googletest/googlemock/test/ |
D | gmock-matchers_test.cc | 324 StringMatchResultListener listener1; in TEST() local 325 EXPECT_TRUE(m.MatchAndExplain(42, &listener1)); in TEST() 326 EXPECT_EQ("which is 42 more than 0", listener1.str()); in TEST() 3042 StringMatchResultListener listener1; in TEST() local 3043 EXPECT_TRUE(ExplainMatchResult(PolymorphicIsEven(), 42, &listener1)); in TEST() 3044 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST() 3053 StringMatchResultListener listener1; in TEST() local 3054 EXPECT_TRUE(ExplainMatchResult(is_even, 42, &listener1)); in TEST() 3055 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
|