Skip to content
Browse files

CoreMIDI test

  • Loading branch information...
1 parent 9ed345d commit 8b8e18a06742088c7334a711c14ada4021306e70 @parmanoir committed Sep 19, 2012
View
13 Tests/59 CoreMIDI.js
@@ -0,0 +1,13 @@
+
+var getName = function(object) {
+ var name = new outArgument;
+
+ MIDIObjectGetStringProperty(object, kMIDIPropertyName, name)
+ return name;
+};
+
+var device = MIDIGetDevice(0);
+//log("Device from js: " + getName(device));
+
+if (!device)
+ throw 'No device'
View
3 TestsRunner/ApplicationController.m
@@ -129,6 +129,9 @@ - (IBAction)_runJSTests:(id)sender {
path = [NSString stringWithFormat:@"%@/Contents/Resources/Tests/Resources/58 manual BridgeSupport.bridgesupport", [[NSBundle mainBundle] bundlePath]];
[[BridgeSupportController sharedController] loadBridgeSupport:path];
+ // (Test 59) Load CoreMIDI
+ [jsc loadFrameworkWithName:@"CoreMIDI"];
+
// Setup tests path
path = [[NSBundle mainBundle] bundlePath];
path = [NSString stringWithFormat:@"%@/Contents/Resources/Tests", path];
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/mini.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.

0 comments on commit 8b8e18a

Please sign in to comment.
Something went wrong with that request. Please try again.