Permalink
Browse files

Updated unit tests.

  • Loading branch information...
1 parent 1c83a28 commit 60971f69426b5e2de051d0b6dad6d53baab5bc4a @logancollins committed Aug 7, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 Mocha/MochaRuntime.m
  2. +1 −1 UnitTests/MOUnitTests.m
  3. +1 −0 UnitTests/Tests/CoreGraphics.js
View
@@ -746,7 +746,7 @@ - (void)throwJSException:(JSValueRef)exceptionJS {
- (BOOL)loadFrameworkWithName:(NSString *)frameworkName {
BOOL success = NO;
- NSFileManager *fileManager = [NSFileManager defaultManager];
+ NSFileManager *fileManager = [[NSFileManager alloc] init];
for (NSString *path in _frameworkSearchPaths) {
NSString *frameworkPath = [path stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.framework", frameworkName]];
View
@@ -27,7 +27,7 @@ - (void)testUsingTestScripts {
// NSFileManager *fileManager = [[NSFileManager alloc] init];
// NSArray *contents = [fileManager contentsOfDirectoryAtURL:testScriptURL includingPropertiesForKeys:nil options:NSDirectoryEnumerationSkipsHiddenFiles error:nil];
NSArray *contents = @[
- //@"CoreGraphics.js",
+ @"CoreGraphics.js",
@"MemoryAllocation.js",
];
@@ -13,6 +13,7 @@ function main() {
fm.removeItemAtURL_error_(url, null);
var rect = CGRectMake(0.0, 0.0, 100.0, 100.0);
+ var rectPtr = MOPointer.alloc().initWithValue_(rect).autorelease();
var c = CGPDFContextCreateWithURL(url, rect, null);
CGPDFContextBeginPage(c, null);

0 comments on commit 60971f6

Please sign in to comment.