[tests][introspection] Adjust skip checks so that introspection runs on older macOS versions successfully.

This commit is contained in:
Rolf Bjarne Kvinge 2018-07-03 16:54:37 +02:00
Родитель badfc700bb
Коммит 22122749af
4 изменённых файлов: 37 добавлений и 1 удалений

Просмотреть файл

@ -166,6 +166,13 @@ namespace Introspection {
if (IntPtr.Size == 4 && Mac.CheckSystemVersion (10, 13)) // 32-bit removed unannounced in 10.13
return true;
break;
case "EventKit.EKEventStore":
case "MonoMac.EventKit.EKEventStore":
if (Mac.CheckSystemVersion (10, 9) && !Mac.CheckSystemVersion (10, 10)) {
// Calling the constructor on Mavericks will put up a permission dialog.
return true;
}
break;
}
switch (type.Namespace) {

Просмотреть файл

@ -217,7 +217,12 @@ namespace Introspection {
case "NSAccessibilityNotifications":
return true;
case "AVFragmentedMovieTrack":
return notificationName == "AVFragmentedMovieTrackTimeRangeDidChangeNotification";
switch (notificationName) {
case "AVFragmentedMovieTrackTotalSampleDataLengthDidChangeNotification":
case "AVFragmentedMovieTrackTimeRangeDidChangeNotification":
return true;
}
break;
case "NSTask":
return notificationName == "NSTaskDidTerminateNotification";
#endif

Просмотреть файл

@ -237,6 +237,14 @@ namespace Introspection {
break;
}
break;
case "CAAction":
switch (type.Name) {
case "NSNull":
if (!Mac.CheckSystemVersion (10, 11)) // NSNull started implementing the CAAction protocol in 10.11
return true;
break;
}
break;
}
switch (type.Name) {

Просмотреть файл

@ -350,6 +350,15 @@ namespace Introspection {
if (Mac.IsAtLeast (10, 11))
return true;
break;
case "NSNull":
switch (selectorName) {
case "runActionForKey:object:arguments:":
// This comes from implementing the CAAction protocol, which started in 10.11.
if (!Mac.CheckSystemVersion (10, 11))
return true;
break;
}
break;
}
break;
case "MonoMac.AppKit":
@ -514,6 +523,8 @@ namespace Introspection {
case "delegate":
case "setDelegate:":
case "expectedPlayerCount":
case "chooseBestHostPlayerWithCompletionHandler:":
case "rematchWithCompletionHandler:":
return true;
}
break;
@ -528,6 +539,11 @@ namespace Introspection {
case "cancel":
case "queryPlayerGroupActivity:withCompletionHandler:":
case "queryActivityWithCompletionHandler:":
case "cancelInviteToPlayer:":
case "finishMatchmakingForMatch:":
case "matchForInvite:completionHandler:":
case "startBrowsingForNearbyPlayersWithReachableHandler:":
case "stopBrowsingForNearbyPlayers":
return true;
}
break;