Skip to content

Commit

Permalink
added harness for testing the whitelist window, added option to add t…
Browse files Browse the repository at this point in the history
…o whitelist, had to brutalize current bindings, there's probably a better way to do it, but my binding-fu is weak.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
bengottlieb authored and rentzsch committed Feb 10, 2009
1 parent 549effe commit 4e01368
Show file tree
Hide file tree
Showing 5 changed files with 3,113 additions and 0 deletions.
24 changes: 24 additions & 0 deletions TestFiles/Debugging Harness/Harness-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.github.rentzsch.clicktoflash</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSMainNibFile</key>
<string>HarnessMain</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions TestFiles/Debugging Harness/HarnessAppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// HarnessAppDelegate.h
// ClickToFlash
//
// Created by Ben Gottlieb on 2/9/09.
// Copyright 2009 Stand Alone, Inc.. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "CTFWhitelistWindowController.h"


@interface HarnessAppDelegate : NSObject {
CTFWhitelistWindowController *_whitelistWindow;
}


- (IBAction) showWhitelistWindow: (id) sender;
@end
24 changes: 24 additions & 0 deletions TestFiles/Debugging Harness/HarnessAppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// HarnessAppDelegate.m
// ClickToFlash
//
// Created by Ben Gottlieb on 2/9/09.
// Copyright 2009 Stand Alone, Inc.. All rights reserved.
//

#import "HarnessAppDelegate.h"

@implementation HarnessAppDelegate

- (void) awakeFromNib {
[self showWhitelistWindow: nil];
}

- (IBAction) showWhitelistWindow: (id) sender {
if (_whitelistWindow == nil) _whitelistWindow = [[CTFWhitelistWindowController alloc] init];

[[_whitelistWindow window] makeKeyAndOrderFront: nil];
}


@end
14 changes: 14 additions & 0 deletions TestFiles/Debugging Harness/HarnessMain.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// main.m
// Testing
//
// Created by Ben Gottlieb on 2/9/09.
// Copyright Stand Alone, Inc. 2009. All rights reserved.
//

#import <Cocoa/Cocoa.h>

int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv);
}
Loading

0 comments on commit 4e01368

Please sign in to comment.