mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
Test: fixed test ToolsTest.j
This commit is contained in:
1 parent
64c1b72481
commit
71c1d16c06
2 files changed
+6
-17
No files matched your search
@@ -7,11 +7,10 @@ function cleanup() {
|
||||
FILE.rmtree(dir);
|
||||
});
|
||||
|
||||
if (FILE.isFile("objj2objcskeletonTestFile.h"))
|
||||
FILE.remove("objj2objcskeletonTestFile.h");
|
||||
|
||||
if (FILE.isFile("objj2objcskeletonTestFile.m"))
|
||||
FILE.remove("objj2objcskeletonTestFile.m");
|
||||
["objj2objcskeletonTestFile.h", "objj2objcskeletonTestFile.m", "objj2objcskeletonTestFile.j"].forEach(function(file) {
|
||||
if (FILE.isFile(file))
|
||||
FILE.remove(file);
|
||||
});
|
||||
}
|
||||
|
||||
@implementation ToolsTest : OJTestCase
|
||||
@@ -45,6 +44,8 @@ function cleanup() {
|
||||
status = OS.system(["objj", "-I", "ToolsTestApp/Frameworks", "ToolsTestApp/AppController.j"]);
|
||||
[self assert:0 equals:status message:"objj failed with options -I"];
|
||||
|
||||
FILE.write("objj2objcskeletonTestFile.j", "@import <Foundation/CPObject.j>\n@import <AppKit/AppKit.j>\n\n\n@implementation AppController : CPObject\n{\n @outlet CPSplitView splitViewA;\n @outlet CPSplitView splitViewB;\n @outlet CPSplitView splitViewC;\n}\n\n@end");
|
||||
|
||||
status = OS.system(["objj2objcskeleton", "objj2objcskeletonTestFile.j", "."]);
|
||||
[self assert:0 equals:status message:"objj2objcskeleton failed"];
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
@import <Foundation/CPObject.j>
|
||||
@import <AppKit/AppKit.j>
|
||||
|
||||
|
||||
@implementation AppController : CPObject
|
||||
{
|
||||
@outlet CPSplitView splitViewA;
|
||||
@outlet CPSplitView splitViewB;
|
||||
@outlet CPSplitView splitViewC;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user