Differences From Artifact [553c5745c1]:
- File tests/OFNotificationCenterTests.m — part of check-in [8939cbdb52] at 2023-01-06 09:04:02 on branch trunk — Update copyright (user: js, size: 5252) [annotate] [blame] [check-ins using]
To Artifact [773c0131fc]:
- File
tests/OFNotificationCenterTests.m
— part of check-in
[651875bc1f]
at
2023-01-13 13:11:53
on branch trunk
— OFNotificationCenter: Don't expose internal class
This causes problems with Swift, which silently drops methods that use
types for which it doesn't have an interface. (user: js, size: 5227) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
105 106 107 108 109 110 111 | TEST(@"-[postNotification:] #3", R([center postNotification: notification]) && test1->_received == 1 && test2->_received == 3 && test3->_received == 0 && test4->_received == 0) #ifdef OF_HAVE_BLOCKS __block bool received = false; | | | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | TEST(@"-[postNotification:] #3", R([center postNotification: notification]) && test1->_received == 1 && test2->_received == 3 && test3->_received == 0 && test4->_received == 0) #ifdef OF_HAVE_BLOCKS __block bool received = false; id handle; notification = [OFNotification notificationWithName: notificationName object: self]; TEST(@"-[addObserverForName:object:usingBlock:]", (handle = [center addObserverForName: notificationName object: self usingBlock: ^ (OFNotification *notif) { |
︙ | ︙ |