[tests][intro] Adjust introspection to run without failure on iOS 6.1.6 (#4720)

This commit is contained in:
Sebastien Pouliot 2018-08-29 09:10:03 -04:00 коммит произвёл GitHub
Родитель bc2dfe335f
Коммит c1593fbd1f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 3 удалений

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

@ -168,9 +168,9 @@ namespace Introspection {
protected virtual bool Skip (string nativeName)
{
if (nativeName.Contains ("`")) {
nativeName = nativeName.Substring (0, nativeName.IndexOf ("`"));
nativeName = nativeName.Substring (0, nativeName.IndexOf ('`'));
}
if (nativeName.StartsWith ("CGPDF")) // all those types crash the app
if (nativeName.StartsWith ("CGPDF", StringComparison.Ordinal)) // all those types crash the app
return true;
switch (nativeName) {
case "CFMachPort":
@ -324,7 +324,7 @@ namespace Introspection {
Size = 16.0f
};
using (var fd = new CTFontDescriptor (fda))
return new CTFont (fd, 10, CTFontOptions.Default);
return new CTFont (fd, 10);
case "CTFontCollection":
return new CTFontCollection (new CTFontCollectionOptions ());
case "CTFontDescriptor":

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

@ -626,6 +626,12 @@ namespace Introspection {
case "ADBannerView":
case "UIAlertView":
return !TestRuntime.CheckXcodeVersion (8, 0);
case "MKOverlayView":
case "MKCircleView":
case "MKOverlayPathView":
case "MKPolygonView":
case "MKPolylineView":
return !TestRuntime.CheckXcodeVersion (7,0);
}
break;