Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tj_devel709 committed Aug 12, 2021
1 parent 9d43b29 commit f51f4d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 39 deletions.
39 changes: 0 additions & 39 deletions tests/introspection/ApiSelectorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -849,45 +849,6 @@ protected virtual bool Skip (Type type, string selectorName)
if (selectorName == "waitUntilExit")
return true;
break;
#if !__MACOS__
case "SHCustomCatalog":
switch (selectorName) {
case "new":
// This selector does not exist in the simulator
if (Runtime.Arch == Arch.SIMULATOR)
return true;
break;
}
break;
case "SHMediaItem":
switch (selectorName) {
case "fetchMediaItemWithShazamID:completionHandler:":
case "mediaItemWithProperties:":
// This selector does not exist in the simulator
if (Runtime.Arch == Arch.SIMULATOR)
return true;
break;
}
break;
case "SHMediaLibrary":
switch (selectorName) {
case "defaultLibrary":
// This selector does not exist in the simulator
if (Runtime.Arch == Arch.SIMULATOR)
return true;
break;
}
break;
case "SHSignature":
switch (selectorName) {
case "signatureWithDataRepresentation:error:":
// This selector does not exist in the simulator
if (Runtime.Arch == Arch.SIMULATOR)
return true;
break;
}
break;
#endif
}

// old binding mistake
Expand Down
4 changes: 4 additions & 0 deletions tests/introspection/iOS/iOSApiClassPtrTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ protected override bool Skip (Type type)
if (Runtime.Arch == Arch.SIMULATOR)
return true;
break;
case "ShazamKit": // missing in the sim
if (Runtime.Arch == Arch.SIMULATOR)
return true;
break;
}

// While the following types are categories and contains a class_ptr
Expand Down
5 changes: 5 additions & 0 deletions tests/introspection/iOS/iOSApiSelectorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ protected override bool Skip (Type type)
return true;
break;
#endif // HAS_WATCHCONNECTIVITY
case "ShazamKit":
// ShazamKit is not fully supported in the simulator
if (Runtime.Arch == Arch.SIMULATOR)
return true;
break;
}

switch (type.Name) {
Expand Down

0 comments on commit f51f4d6

Please sign in to comment.