cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [3/3] ios commit: Move CordovaLibTests into tests/
Date Thu, 09 Oct 2014 23:05:21 GMT
Move CordovaLibTests into tests/


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/cba612ff
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/cba612ff
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/cba612ff

Branch: refs/heads/master
Commit: cba612ff06168b50feaf3562a7b10764e98ecb3c
Parents: 765065c
Author: Shazron Abdullah <shazron@apache.org>
Authored: Thu Oct 9 16:05:16 2014 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Thu Oct 9 16:05:16 2014 -0700

----------------------------------------------------------------------
 CordovaLibTests/CDVBase64Tests.m                |  64 --
 CordovaLibTests/CDVCommandDelegateTests.m       |  57 --
 CordovaLibTests/CDVFakeFileManager.h            |  35 -
 CordovaLibTests/CDVFakeFileManager.m            |  43 --
 CordovaLibTests/CDVInvokedUrlCommandTests.m     |  51 --
 CordovaLibTests/CDVLocalStorageTests.m          | 146 ----
 .../CDVPluginResultJSONSerializationTests.m     | 144 ----
 CordovaLibTests/CDVStartPageTests.m             |  95 ---
 CordovaLibTests/CDVUserAgentTest.m              |  93 ---
 CordovaLibTests/CDVWebViewDelegateTests.m       | 103 ---
 CordovaLibTests/CDVWebViewTest.h                |  43 --
 CordovaLibTests/CDVWebViewTest.m                | 122 ----
 CordovaLibTests/CDVWhitelistTests.m             | 259 -------
 CordovaLibTests/CordovaLibApp/AppDelegate.h     |  33 -
 CordovaLibTests/CordovaLibApp/AppDelegate.m     | 102 ---
 .../CordovaLibApp/CordovaLibApp-Info.plist      |  45 --
 CordovaLibTests/CordovaLibApp/ViewController.h  |  25 -
 CordovaLibTests/CordovaLibApp/ViewController.m  |  53 --
 CordovaLibTests/CordovaLibApp/config.xml        |  55 --
 .../CordovaLibApp/en.lproj/InfoPlist.strings    |  20 -
 CordovaLibTests/CordovaLibApp/main.m            |  29 -
 CordovaLibTests/CordovaLibApp/www/index.html    |  84 ---
 CordovaLibTests/CordovaLibTests-Info.plist      |  42 --
 .../CordovaTests.xcodeproj/project.pbxproj      | 715 -------------------
 .../xcschemes/CordovaLibApp.xcscheme            |  95 ---
 .../xcschemes/CordovaLibTests.xcscheme          |  62 --
 CordovaLibTests/Default-568h@2x.png             | Bin 18594 -> 0 bytes
 CordovaLibTests/en.lproj/InfoPlist.strings      |  20 -
 tests/CordovaLibTests/CDVBase64Tests.m          |  64 ++
 tests/CordovaLibTests/CDVCommandDelegateTests.m |  57 ++
 tests/CordovaLibTests/CDVFakeFileManager.h      |  35 +
 tests/CordovaLibTests/CDVFakeFileManager.m      |  43 ++
 .../CordovaLibTests/CDVInvokedUrlCommandTests.m |  51 ++
 tests/CordovaLibTests/CDVLocalStorageTests.m    | 146 ++++
 .../CDVPluginResultJSONSerializationTests.m     | 144 ++++
 tests/CordovaLibTests/CDVStartPageTests.m       |  95 +++
 tests/CordovaLibTests/CDVUserAgentTest.m        |  93 +++
 tests/CordovaLibTests/CDVWebViewDelegateTests.m | 103 +++
 tests/CordovaLibTests/CDVWebViewTest.h          |  43 ++
 tests/CordovaLibTests/CDVWebViewTest.m          | 122 ++++
 tests/CordovaLibTests/CDVWhitelistTests.m       | 259 +++++++
 .../CordovaLibTests/CordovaLibApp/AppDelegate.h |  33 +
 .../CordovaLibTests/CordovaLibApp/AppDelegate.m | 102 +++
 .../CordovaLibApp/CordovaLibApp-Info.plist      |  45 ++
 .../CordovaLibApp/ViewController.h              |  25 +
 .../CordovaLibApp/ViewController.m              |  53 ++
 tests/CordovaLibTests/CordovaLibApp/config.xml  |  55 ++
 .../CordovaLibApp/en.lproj/InfoPlist.strings    |  20 +
 tests/CordovaLibTests/CordovaLibApp/main.m      |  29 +
 .../CordovaLibApp/www/index.html                |  84 +++
 .../CordovaLibTests/CordovaLibTests-Info.plist  |  42 ++
 .../CordovaTests.xcodeproj/project.pbxproj      | 715 +++++++++++++++++++
 .../xcschemes/CordovaLibApp.xcscheme            |  95 +++
 .../xcschemes/CordovaLibTests.xcscheme          |  62 ++
 tests/CordovaLibTests/Default-568h@2x.png       | Bin 0 -> 18594 bytes
 .../CordovaLibTests/en.lproj/InfoPlist.strings  |  20 +
 56 files changed, 2635 insertions(+), 2635 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVBase64Tests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVBase64Tests.m b/CordovaLibTests/CDVBase64Tests.m
deleted file mode 100644
index 744601f..0000000
--- a/CordovaLibTests/CDVBase64Tests.m
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-
-#import "NSData+Base64.h"
-
-@interface CDVBase64Tests : XCTestCase
-@end
-
-@implementation CDVBase64Tests
-
-- (void)setUp
-{
-    [super setUp];
-
-    // setup code here
-}
-
-- (void)tearDown
-{
-    // Tear-down code here.
-
-    [super tearDown];
-}
-
-- (void)testBase64Encode
-{
-    NSString* decodedString = @"abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&";
-    NSData* decodedData = [decodedString dataUsingEncoding:NSUTF8StringEncoding];
-
-    NSString* expectedEncodedString = @"YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY3ODkwIUAjJCVeJg==";
-    NSString* actualEncodedString = [decodedData base64EncodedString];
-
-    XCTAssertTrue([expectedEncodedString isEqualToString:actualEncodedString]);
-}
-
-- (void)testBase64Decode
-{
-    NSString* encodedString = @"YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY3ODkwIUAjJCVeJg==";
-    NSString* decodedString = @"abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&";
-    NSData* encodedData = [decodedString dataUsingEncoding:NSUTF8StringEncoding];
-    NSData* decodedData = [NSData dataFromBase64String:encodedString];
-
-    XCTAssertTrue([encodedData isEqualToData:decodedData]);
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVCommandDelegateTests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVCommandDelegateTests.m b/CordovaLibTests/CDVCommandDelegateTests.m
deleted file mode 100644
index 85768a9..0000000
--- a/CordovaLibTests/CDVCommandDelegateTests.m
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-#import <Cordova/CDVCommandDelegateImpl.h>
-
-@interface CDVCommandDelegateTests : XCTestCase
-
-@end
-
-@interface CDVCommandDelegateImpl ()
-
-// expose private interface
-- (BOOL)isValidCallbackId:(NSString*)callbackId;
-
-@end
-
-@implementation CDVCommandDelegateTests
-
-- (void)setUp
-{
-    [super setUp];
-    // Put setup code here. This method is called before the invocation of each test method in the class.
-}
-
-- (void)tearDown
-{
-    // Put teardown code here. This method is called after the invocation of each test method in the class.
-    [super tearDown];
-}
-
-- (void)testNullCallbackId
-{
-    CDVCommandDelegateImpl* impl = [[CDVCommandDelegateImpl alloc] initWithViewController:nil];
-
-    NSString* callbackId = nil;
-
-    XCTAssertFalse([impl isValidCallbackId:callbackId], @"A nil callbackId should be not valid");
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVFakeFileManager.h
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVFakeFileManager.h b/CordovaLibTests/CDVFakeFileManager.h
deleted file mode 100644
index f9300a0..0000000
--- a/CordovaLibTests/CDVFakeFileManager.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-typedef BOOL (^ CDVFileExistsBlock)(NSString*);
-
-// Used in place of an NSFileManager for unit tests. It implements only those functions
-// which are required by the tests that use it.
-@interface CDVFakeFileManager : NSObject {
-    @private
-    CDVFileExistsBlock _fileExistsBlock;
-}
-
-- (id)initWithFileExistsBlock:(CDVFileExistsBlock)fileExistsBlock;
-+ (id)managerWithFileExistsBlock:(CDVFileExistsBlock)fileExistsBlock;
-
-- (BOOL)fileExistsAtPath:(NSString*)path;
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVFakeFileManager.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVFakeFileManager.m b/CordovaLibTests/CDVFakeFileManager.m
deleted file mode 100644
index 50ecd43..0000000
--- a/CordovaLibTests/CDVFakeFileManager.m
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import "CDVFakeFileManager.h"
-
-@implementation CDVFakeFileManager
-
-- (id)initWithFileExistsBlock:(CDVFileExistsBlock)fileExistsBlock
-{
-    self = [super init];
-    if (self != nil) {
-        _fileExistsBlock = [fileExistsBlock copy];
-    }
-    return self;
-}
-
-+ (id)managerWithFileExistsBlock:(CDVFileExistsBlock)fileExistsBlock
-{
-    return [[CDVFakeFileManager alloc] initWithFileExistsBlock:fileExistsBlock];
-}
-
-- (BOOL)fileExistsAtPath:(NSString*)path
-{
-    return _fileExistsBlock(path);
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVInvokedUrlCommandTests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVInvokedUrlCommandTests.m b/CordovaLibTests/CDVInvokedUrlCommandTests.m
deleted file mode 100644
index 3f8dd18..0000000
--- a/CordovaLibTests/CDVInvokedUrlCommandTests.m
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-
-#import "CDVInvokedUrlCommand.h"
-
-@interface CDVInvokedUrlCommandTests : XCTestCase
-@end
-
-@implementation CDVInvokedUrlCommandTests
-
-- (void)testInitWithNoArgs
-{
-    NSArray* jsonArr = [NSArray arrayWithObjects:@"callbackId", @"className", @"methodName", [NSArray array], nil];
-    CDVInvokedUrlCommand* command = [CDVInvokedUrlCommand commandFromJson:jsonArr];
-
-    XCTAssertEqual(@"callbackId", command.callbackId);
-    XCTAssertEqual(@"className", command.className);
-    XCTAssertEqual(@"methodName", command.methodName);
-    XCTAssertEqual([NSArray array], command.arguments);
-}
-
-- (void)testArgumentAtIndex
-{
-    NSArray* jsonArr = [NSArray arrayWithObjects:[NSNull null], @"className", @"methodName", [NSArray array], nil];
-    CDVInvokedUrlCommand* command = [CDVInvokedUrlCommand commandFromJson:jsonArr];
-
-    XCTAssertNil([command argumentAtIndex:0], @"NSNull to nil");
-    XCTAssertNil([command argumentAtIndex:100], @"Invalid index to nil");
-    XCTAssertEqual(@"default", [command argumentAtIndex:0 withDefault:@"default"], @"NSNull to default");
-    XCTAssertEqual(@"default", [command argumentAtIndex:100 withDefault:@"default"], @"Invalid index to default");
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVLocalStorageTests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVLocalStorageTests.m b/CordovaLibTests/CDVLocalStorageTests.m
deleted file mode 100644
index f664508..0000000
--- a/CordovaLibTests/CDVLocalStorageTests.m
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-
-#import "CDVLocalStorage.h"
-#import "CDVWebViewTest.h"
-#import "CDVFakeFileManager.h"
-#import "ViewController.h"
-
-@interface CDVLocalStorageTests : CDVWebViewTest
-                                  // Deletes LocalStorage files from disk.
-- (void)deleteOriginals:(BOOL)originals backups:(BOOL)backups;
-// Returns the CDVLocalStorage instance from the plugins dict.
-- (CDVLocalStorage*)localStorage;
-@end
-
-@implementation CDVLocalStorageTests
-
-- (void)setUp
-{
-    [super setUp];
-    // Clear these on setUp as well in case they were left around.
-    [self deleteOriginals:YES backups:YES];
-}
-
-- (void)tearDown
-{
-    // Don't leave any localStorage files around.
-    [self deleteOriginals:YES backups:YES];
-    [super tearDown];
-}
-
-- (CDVLocalStorage*)localStorage
-{
-    return [self pluginInstance:@"LocalStorage"];
-}
-
-- (void)deleteOriginals:(BOOL)originals backups:(BOOL)backups
-{
-    NSFileManager* fileManager = [NSFileManager defaultManager];
-
-    for (CDVBackupInfo* info in [self localStorage].backupInfo) {
-        if (originals) {
-            [fileManager removeItemAtPath:info.original error:nil];
-        }
-        if (backups) {
-            [fileManager removeItemAtPath:info.backup error:nil];
-        }
-    }
-}
-
-- (void)disabled_testBackupAndRestore
-{
-    CDVLocalStorage* localStorage = [self localStorage];
-
-    [self waitForConditionName:@"shouldBackup" block:^{
-        [self evalJs:@"localStorage.setItem('foo', 'bar')"];
-        return [localStorage shouldBackup];
-    }];
-    [localStorage backup:[CDVInvokedUrlCommand new]];
-    XCTAssertFalse([localStorage shouldBackup], @"Should have backed up.");
-
-    // It would be nice to be able to test that the restore functionality
-    // alters what localStorage.getItem('foo') returns, but it seems as though
-    // the WebView maintains an in-memory cache of what's in LocalStorage even
-    // after we delete the underlying files and recreate the view.
-
-    // Instead, we just test the file copying logic.
-    [self deleteOriginals:YES backups:NO];
-    XCTAssertTrue([localStorage shouldRestore], @"Should restore after deleting originals");
-    [localStorage restore:[CDVInvokedUrlCommand new]];
-    XCTAssertFalse([localStorage shouldRestore], @"Restore did not complete successfully");
-}
-
-- (void)testVerifyAndFixDatabaseLocations_noChangeRequired
-{
-    NSString* const kBundlePath = @"/bpath";
-    id fakeFileManager = [CDVFakeFileManager managerWithFileExistsBlock:^(NSString* path) {
-            XCTFail(@"fileExists called.");
-            return NO;
-        }];
-    NSMutableDictionary* appPlistDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:
-        @"/bpath/foo", @"WebKitLocalStorageDatabasePathPreferenceKey",
-        @"/bpath/foo", @"WebDatabaseDirectory",
-        nil];
-    BOOL modified = [CDVLocalStorage __verifyAndFixDatabaseLocationsWithAppPlistDict:appPlistDict
-                                                                          bundlePath:kBundlePath
-                                                                         fileManager:fakeFileManager];
-
-    XCTAssertFalse(modified, @"Should not have applied fix.");
-}
-
-- (void)testVerifyAndFixDatabaseLocations_changeRequired1
-{
-    NSString* const kBundlePath = @"/bpath";
-    id fakeFileManager = [CDVFakeFileManager managerWithFileExistsBlock:^(NSString* path) {
-            return YES;
-        }];
-    NSMutableDictionary* appPlistDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:
-        @"/foo", @"WebKitLocalStorageDatabasePathPreferenceKey",
-        nil];
-    BOOL modified = [CDVLocalStorage __verifyAndFixDatabaseLocationsWithAppPlistDict:appPlistDict
-                                                                          bundlePath:kBundlePath
-                                                                         fileManager:fakeFileManager];
-
-    XCTAssertTrue(modified, @"Should have applied fix.");
-    NSString* newPath = [appPlistDict objectForKey:@"WebKitLocalStorageDatabasePathPreferenceKey"];
-    XCTAssertTrue([@"/bpath/Library/Caches" isEqualToString: newPath]);
-}
-
-- (void)testVerifyAndFixDatabaseLocations_changeRequired2
-{
-    NSString* const kBundlePath = @"/bpath";
-    id fakeFileManager = [CDVFakeFileManager managerWithFileExistsBlock:^(NSString* path) {
-            return NO;
-        }];
-    NSMutableDictionary* appPlistDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:
-        @"/foo", @"WebDatabaseDirectory",
-        nil];
-    BOOL modified = [CDVLocalStorage __verifyAndFixDatabaseLocationsWithAppPlistDict:appPlistDict
-                                                                          bundlePath:kBundlePath
-                                                                         fileManager:fakeFileManager];
-
-    XCTAssertTrue(modified, @"Should have applied fix.");
-    NSString* newPath = [appPlistDict objectForKey:@"WebDatabaseDirectory"];
-    XCTAssertTrue([@"/bpath/Library/WebKit" isEqualToString: newPath]);
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVPluginResultJSONSerializationTests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVPluginResultJSONSerializationTests.m b/CordovaLibTests/CDVPluginResultJSONSerializationTests.m
deleted file mode 100644
index 48eaa82..0000000
--- a/CordovaLibTests/CDVPluginResultJSONSerializationTests.m
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <Foundation/Foundation.h>
-#import <XCTest/XCTest.h>
-
-#import "CDVPluginResult.h"
-#import "CDVJSON.h"
-
-@interface CDVPluginResultJSONSerializationTests : XCTestCase
-@end
-
-@implementation CDVPluginResultJSONSerializationTests
-
-- (void)testSerializingMessageAsInt
-{
-    int val = 5;
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt:val];
-
-    XCTAssertTrue([[NSNumber numberWithInt:val] isEqual:[[result argumentsAsJSON] JSONFragment]]);
-}
-
-- (void)testSerializingMessageAsDouble
-{
-    double val = 5.5;
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDouble:val];
-
-    XCTAssertTrue([[NSNumber numberWithDouble:val] isEqual:[[result argumentsAsJSON] JSONFragment]]);
-}
-
-- (void)testSerializingMessageAsBool
-{
-    BOOL val = YES;
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsBool:val];
-
-    XCTAssertTrue([[NSNumber numberWithBool:val] isEqual:[[result argumentsAsJSON] JSONFragment]]);
-}
-
-- (void)testSerializingMessageAsArray
-{
-    NSArray* testValues = [NSArray arrayWithObjects:
-        [NSNull null],
-        @"string",
-        [NSNumber numberWithInt:5],
-        [NSNumber numberWithDouble:5.5],
-        [NSNumber numberWithBool:true],
-        nil];
-
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsArray:testValues];
-    NSArray* arr = [[result argumentsAsJSON] JSONObject];
-
-    XCTAssertTrue([arr isKindOfClass:[NSArray class]]);
-    XCTAssertTrue([testValues count] == [arr count]);
-
-    for (NSInteger i = 0; i < [testValues count]; i++) {
-        XCTAssertTrue([[testValues objectAtIndex:i] isEqual:[arr objectAtIndex:i]]);
-    }
-}
-
-- (void)__testDictionary:(NSDictionary*)dictA withDictionary:(NSDictionary*)dictB
-{
-    XCTAssertTrue([dictA isKindOfClass:[NSDictionary class]]);
-    XCTAssertTrue([dictB isKindOfClass:[NSDictionary class]]);
-
-    XCTAssertTrue([[dictA allKeys] count] == [[dictB allKeys] count]);
-
-    for (NSInteger i = 0; i < [dictA count]; i++) {
-        id keyA = [[dictA allKeys] objectAtIndex:i];
-        id objA = [dictA objectForKey:keyA];
-        id objB = [dictB objectForKey:keyA];
-
-        XCTAssertTrue([[dictB allKeys] containsObject:keyA]); // key exists
-        if ([objA isKindOfClass:[NSDictionary class]]) {
-            [self __testDictionary:objA withDictionary:objB];
-        } else {
-            XCTAssertTrue([objA isEqual:objB]); // key's value equality
-        }
-    }
-}
-
-- (void)testSerializingMessageAsDictionary
-{
-    NSMutableDictionary* testValues = [NSMutableDictionary dictionaryWithObjectsAndKeys:
-        [NSNull null], @"nullItem",
-        @"string", @"stringItem",
-        [NSNumber numberWithInt:5], @"intItem",
-        [NSNumber numberWithDouble:5.5], @"doubleItem",
-        [NSNumber numberWithBool:true], @"boolItem",
-        nil];
-
-    NSDictionary* nestedDict = [testValues copy];
-
-    [testValues setValue:nestedDict forKey:@"nestedDict"];
-
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:testValues];
-    NSDictionary* dic = [[result argumentsAsJSON] JSONObject];
-
-    [self __testDictionary:testValues withDictionary:dic];
-}
-
-- (void)testSerializingMessageAsErrorCode
-{
-    NSMutableDictionary* testValues = [NSMutableDictionary dictionaryWithObjectsAndKeys:
-        [NSNumber numberWithInt:1], @"code",
-        nil];
-
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageToErrorObject:1];
-
-    [self __testDictionary:testValues withDictionary:[[result argumentsAsJSON] JSONObject]];
-}
-
-- (void)testSerializingMessageAsStringContainingQuotes
-{
-    NSString* quotedString = @"\"quoted\"";
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:quotedString];
-
-    XCTAssertTrue([quotedString isEqualToString:[[result argumentsAsJSON] JSONFragment]]);
-}
-
-- (void)testSerializingMessageAsStringThatIsNil
-{
-    NSString* nilString = nil;
-    CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:nilString];
-
-    XCTAssertTrue([[NSNull null] isEqual:[[result argumentsAsJSON] JSONFragment]]);
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVStartPageTests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVStartPageTests.m b/CordovaLibTests/CDVStartPageTests.m
deleted file mode 100644
index 452e4f8..0000000
--- a/CordovaLibTests/CDVStartPageTests.m
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-
-#import "CDVWebViewTest.h"
-#import "CDVViewController.h"
-#import "AppDelegate.h"
-
-@interface CDVStartPageTestViewController : UIViewController
-@property (strong, nonatomic) CDVViewController* vc1;
-@property (strong, nonatomic) CDVViewController* vc2;
-@end
-
-@implementation CDVStartPageTestViewController
-@synthesize vc1 = _vc1, vc2 = _vc2;
-
-- (void)loadView
-{
-    _vc1 = [[CDVViewController alloc] init];
-    _vc1.wwwFolderName = @"www";
-    _vc1.startPage = @"index.html";
-    [self addChildViewController:_vc1];
-
-    _vc2 = [[CDVViewController alloc] init];
-    _vc2.wwwFolderName = @"www";
-    _vc2.startPage = @"index.html?delta=true";
-    [self addChildViewController:_vc2];
-
-    CGRect applicationFrame = [[UIScreen mainScreen] applicationFrame];
-    UIView* contentView = [[UIView alloc] initWithFrame:applicationFrame];
-
-    CGRect sub1, sub2;
-    CGRectDivide(applicationFrame, &sub1, &sub2, applicationFrame.size.height / 2, CGRectMinYEdge);
-    [_vc1.view setBounds:sub1];
-    [_vc2.view setBounds:sub2];
-
-    [contentView addSubview:_vc1.view];
-    [contentView addSubview:_vc2.view];
-
-    self.view = contentView;
-}
-
-@end
-
-@interface CDVStartPageTest : CDVWebViewTest
-@end
-
-@implementation CDVStartPageTest
-
-- (void)setUp
-{
-    [super setUp];
-}
-
-- (void)tearDown
-{
-    [super tearDown];
-}
-
-- (void)testParametersInStartPage
-{
-    CDVStartPageTestViewController* rootVc = [[CDVStartPageTestViewController alloc] init];
-
-    self.appDelegate.window.rootViewController = rootVc;
-
-    NSString* geHREF = @"window.location.href";
-    [self waitForConditionName:@"getting href" block:^{
-        return (BOOL)(rootVc.vc1.webView.request != nil && rootVc.vc1.webView.request != nil);
-    }];
-
-    NSString* href = [rootVc.vc1.webView stringByEvaluatingJavaScriptFromString:geHREF];
-    XCTAssertTrue([href hasSuffix:@"index.html"], @"href should point to index.html");
-
-    href = [rootVc.vc2.webView stringByEvaluatingJavaScriptFromString:geHREF];
-    XCTAssertTrue([href hasSuffix:@"index.html?delta=true"], @"href should point to index.html?delta=true");
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVUserAgentTest.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVUserAgentTest.m b/CordovaLibTests/CDVUserAgentTest.m
deleted file mode 100644
index 1a68364..0000000
--- a/CordovaLibTests/CDVUserAgentTest.m
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-
-#import "CDVWebViewTest.h"
-#import "CDVViewController.h"
-#import "AppDelegate.h"
-
-@interface CDVUserAgentTestViewController : UIViewController
-@property (nonatomic) CDVViewController* vc1;
-@property (nonatomic) CDVViewController* vc2;
-@end
-
-@implementation CDVUserAgentTestViewController
-@synthesize vc1 = _vc1, vc2 = _vc2;
-
-- (void)loadView
-{
-    _vc1 = [[CDVViewController alloc] init];
-    _vc1.wwwFolderName = @"www";
-    _vc1.startPage = @"index.html";
-    [self addChildViewController:_vc1];
-
-    _vc2 = [[CDVViewController alloc] init];
-    _vc2.wwwFolderName = @"www";
-    _vc2.startPage = @"index.html";
-    [self addChildViewController:_vc2];
-
-    CGRect applicationFrame = [[UIScreen mainScreen] applicationFrame];
-    UIView* contentView = [[UIView alloc] initWithFrame:applicationFrame];
-
-    CGRect sub1, sub2;
-    CGRectDivide(applicationFrame, &sub1, &sub2, applicationFrame.size.height / 2, CGRectMinYEdge);
-    [_vc1.view setBounds:sub1];
-    [_vc2.view setBounds:sub2];
-
-    [contentView addSubview:_vc1.view];
-    [contentView addSubview:_vc2.view];
-
-    self.view = contentView;
-}
-
-@end
-
-@interface CDVUserAgentTest : CDVWebViewTest
-@end
-
-@implementation CDVUserAgentTest
-
-- (void)setUp
-{
-    [super setUp];
-}
-
-- (void)tearDown
-{
-    [super tearDown];
-}
-
-- (void)testMultipleViews
-{
-    CDVUserAgentTestViewController* rootVc = [[CDVUserAgentTestViewController alloc] init];
-
-    self.appDelegate.window.rootViewController = rootVc;
-
-    NSString* getUserAgentCode = @"navigator.userAgent";
-    [self waitForConditionName:@"getting user-agents" block:^{
-        return (BOOL)(rootVc.vc1.webView.request != nil && rootVc.vc2.webView.request != nil);
-    }];
-    NSString* ua1 = [rootVc.vc1.webView stringByEvaluatingJavaScriptFromString:getUserAgentCode];
-    NSString* ua2 = [rootVc.vc2.webView stringByEvaluatingJavaScriptFromString:getUserAgentCode];
-
-    XCTAssertFalse([ua1 isEqual:ua2], @"User-Agents should be different.");
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVWebViewDelegateTests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVWebViewDelegateTests.m b/CordovaLibTests/CDVWebViewDelegateTests.m
deleted file mode 100644
index 7edd189..0000000
--- a/CordovaLibTests/CDVWebViewDelegateTests.m
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-
-#import <Cordova/CDVWebViewDelegate.h>
-
-@interface CDVWebViewDelegate ()
-
-// expose private interface
-- (BOOL)shouldLoadRequest:(NSURLRequest*)request;
-
-@end
-
-@interface CDVWebViewDelegateTests : XCTestCase
-@end
-
-@implementation CDVWebViewDelegateTests
-
-- (void)setUp
-{
-    [super setUp];
-}
-
-- (void)tearDown
-{
-    [super tearDown];
-}
-
-- (void)testShouldLoadRequest
-{
-    CDVWebViewDelegate* wvd = [[CDVWebViewDelegate alloc] initWithDelegate:nil]; // not really testing delegate handling
-
-    NSURLRequest* mailtoUrl = [NSURLRequest requestWithURL:[NSURL URLWithString:@"mailto:dev@cordova.apache.org"]];
-    NSURLRequest* telUrl = [NSURLRequest requestWithURL:[NSURL URLWithString:@"tel:12345"]];
-    NSURLRequest* plainUrl = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://apache.org"]];
-
-    XCTAssertTrue([wvd shouldLoadRequest:mailtoUrl], @"mailto urls should be allowed");
-    XCTAssertTrue([wvd shouldLoadRequest:telUrl], @"tel urls should be allowed");
-    // as long as this is in the whitelist it should pass
-    XCTAssertTrue([wvd shouldLoadRequest:plainUrl], @"http urls should be allowed");
-}
-
-- (void)testFragmentIdentifiersWithHttpUrl
-{
-    [self doTestFragmentIdentifiersWithBaseUrl:@"http://cordova.apache.org" fragment:@"myfragment"];
-}
-
-- (void)testFragmentIdentifiersWithFileUrl
-{
-    [self doTestFragmentIdentifiersWithBaseUrl:@"file:///var/mobile/GASGEQGQsdga3313/www/index.html" fragment:@"myfragment"];
-}
-
-- (void)testFragmentIdentifiersWithFileUrlAndMalformedFragment
-{
-    [self doTestFragmentIdentifiersWithBaseUrl:@"file:///var/mobile/GASGEQGQsdga3313/www/index.html" fragment:@"/var/mobile/GASGEQGQsdga3313/www/index.html"];
-}
-
-- (void)doTestFragmentIdentifiersWithBaseUrl:(NSString*)baseUrl fragment:(NSString*)fragment
-{
-    CDVWebViewDelegate* wvd = [[CDVWebViewDelegate alloc] initWithDelegate:nil]; // not really testing delegate handling
-
-    NSString* originalUrlString = baseUrl;
-    NSURL* originalUrl = [NSURL URLWithString:originalUrlString];
-    NSURL* originalUrlWithFragmentOnly = [NSURL URLWithString:[NSString stringWithFormat:@"%@#%@", originalUrlString, fragment]];
-    NSURL* originalUrlWithFragmentOnlyNoIdentifier = [NSURL URLWithString:[NSString stringWithFormat:@"%@#", originalUrlString]];
-    NSURL* originalUrlWithQueryParamsAndFragment = [NSURL URLWithString:[NSString stringWithFormat:@"%@?foo=bar#%@", originalUrlString, fragment]];
-
-    NSURLRequest* originalRequest = [NSURLRequest requestWithURL:originalUrl];
-    NSURLRequest* originalRequestWithFragmentOnly = [NSURLRequest requestWithURL:originalUrlWithFragmentOnly];
-    NSURLRequest* originalRequestWithFragmentOnlyNoIdentifier = [NSURLRequest requestWithURL:originalUrlWithFragmentOnlyNoIdentifier];
-    NSURLRequest* originalRequestWithQueryParamsAndFragment = [NSURLRequest requestWithURL:originalUrlWithQueryParamsAndFragment];
-    NSURLRequest* notOriginalRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://httpd.apache.org"]];
-
-    XCTAssertTrue([wvd request:originalRequest isEqualToRequestAfterStrippingFragments:originalRequest], @"originalRequest should be a be equal to originalRequest after stripping fragments");
-    XCTAssertTrue([wvd request:originalRequestWithFragmentOnly isEqualToRequestAfterStrippingFragments:originalRequest], @"originalRequestWithFragment should be equal to originalRequest after stripping fragment");
-    XCTAssertTrue([wvd request:originalRequestWithFragmentOnlyNoIdentifier isEqualToRequestAfterStrippingFragments:originalRequest], @"originalRequestWithFragmentNoIdentifier should be equal to originalRequest after stripping fragment");
-    XCTAssertFalse([wvd request:originalRequestWithQueryParamsAndFragment isEqualToRequestAfterStrippingFragments:originalRequest], @"originalRequestWithQueryParamsAndFragment should not be equal to originalRequest after stripping fragment");
-    XCTAssertFalse([wvd request:notOriginalRequest isEqualToRequestAfterStrippingFragments:originalRequest], @"notOriginalRequest should not be equal to originalRequest after stripping fragment");
-
-    // equality tests
-    XCTAssertTrue([wvd request:originalRequestWithFragmentOnly isEqualToRequestAfterStrippingFragments:originalRequestWithFragmentOnly], @"originalRequestWithFragment should be a equal to itself after stripping fragments");
-    XCTAssertTrue([wvd request:originalRequestWithFragmentOnlyNoIdentifier isEqualToRequestAfterStrippingFragments:originalRequestWithFragmentOnlyNoIdentifier], @"originalRequestWithFragmentNoIdentifier should be a equal to itself after stripping fragments");
-    XCTAssertTrue([wvd request:originalRequestWithQueryParamsAndFragment isEqualToRequestAfterStrippingFragments:originalRequestWithQueryParamsAndFragment], @"originalRequestWithQueryParamsAndFragment should be equal to itself after stripping fragments");
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVWebViewTest.h
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVWebViewTest.h b/CordovaLibTests/CDVWebViewTest.h
deleted file mode 100644
index e11b825..0000000
--- a/CordovaLibTests/CDVWebViewTest.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-#import <UIKit/UIKit.h>
-
-@class AppDelegate;
-@class CDVViewController;
-
-@interface CDVWebViewTest : XCTestCase
-
-@property (nonatomic, strong) UIWebView* webView;
-
-- (AppDelegate*)appDelegate;
-- (CDVViewController*)viewController;
-- (UIWebView*)webView;
-
-// Returns the already registered plugin object for the given class.
-- (id)pluginInstance:(NSString*)pluginName;
-// Destroys the existing webview and creates a new one.
-- (void)reloadWebView;
-// Runs the run loop until the given block returns true, or until a timeout
-// occurs.
-- (void)waitForConditionName:(NSString*)conditionName block:(BOOL (^)())block;
-// Convenience function for stringByEvaluatingJavaScriptFromString.
-- (NSString*)evalJs:(NSString*)code;
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVWebViewTest.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVWebViewTest.m b/CordovaLibTests/CDVWebViewTest.m
deleted file mode 100644
index c395f48..0000000
--- a/CordovaLibTests/CDVWebViewTest.m
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import "CDVWebViewTest.h"
-
-#import "AppDelegate.h"
-#import "ViewController.h"
-
-@interface CDVWebViewTest ()
-// Runs the run loop until the webview has finished loading.
-- (void)waitForPageLoad;
-@end
-
-@implementation CDVWebViewTest
-
-@synthesize webView;
-
-- (void)setUp
-{
-    [super setUp];
-    // Stop tests on the first failed assertion. Having the test stop on the
-    // first exception makes it much easier to identify the source of the error.
-    // On iOS < 5 there is a bug in SenTestingKit where the exception is
-    // uncaught and the app crashes upon a failed STAssert (oh well).
-    //[self raiseAfterFailure];
-}
-
-- (void)tearDown
-{
-    // Enforce that the view controller is released between tests to ensure
-    // tests don't affect each other.
-    [self.appDelegate destroyViewController];
-    [super tearDown];
-}
-
-- (AppDelegate*)appDelegate
-{
-    return [[UIApplication sharedApplication] delegate];
-}
-
-- (CDVViewController*)viewController
-{
-    // Lazily create the view controller so that tests that do not require it
-    // are not slowed down by it.
-    if (self.appDelegate.viewController == nil) {
-        [self.appDelegate createViewController];
-        // Things break if tearDown is called before the page has finished
-        // loading (a JS error happens and an alert pops up), so enforce a wait
-        // here.
-        [self waitForPageLoad];
-    }
-    XCTAssertNotNil(self.appDelegate.viewController, @"createViewController failed");
-    return self.appDelegate.viewController;
-}
-
-- (UIWebView*)webView
-{
-    return self.viewController.webView;
-}
-
-- (id)pluginInstance:(NSString*)pluginName
-{
-    id ret = [self.viewController getCommandInstance:pluginName];
-
-    XCTAssertNotNil(ret, @"Missing plugin %@", pluginName);
-    return ret;
-}
-
-- (void)reloadWebView
-{
-    [self.appDelegate destroyViewController];
-    [self.appDelegate createViewController];
-}
-
-- (void)waitForConditionName:(NSString*)conditionName block:(BOOL (^)())block
-{
-    // Number of seconds to wait for a condition to become true before giving up.
-    const NSTimeInterval kConditionTimeout = 5.0;
-    // Useful when debugging so that it does not timeout after one loop.
-    const int kMinIterations = 4;
-
-    NSDate* startTime = [NSDate date];
-    int i = 0;
-
-    while (!block()) {
-        [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
-        NSTimeInterval elapsed = -[startTime timeIntervalSinceNow];
-        XCTAssertTrue(i < kMinIterations || elapsed < kConditionTimeout,
-            @"Timed out waiting for condition %@", conditionName);
-        ++i;
-    }
-}
-
-- (void)waitForPageLoad
-{
-    [self waitForConditionName:@"PageLoad" block:^{
-        return [@"true" isEqualToString :[self evalJs:@"window.pageIsLoaded"]];
-    }];
-}
-
-- (NSString*)evalJs:(NSString*)code
-{
-    return [self.webView stringByEvaluatingJavaScriptFromString:code];
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CDVWhitelistTests.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CDVWhitelistTests.m b/CordovaLibTests/CDVWhitelistTests.m
deleted file mode 100644
index abb984c..0000000
--- a/CordovaLibTests/CDVWhitelistTests.m
+++ /dev/null
@@ -1,259 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <XCTest/XCTest.h>
-
-#import "CDVWhitelist.h"
-
-@interface CDVWhitelistTests : XCTestCase
-@end
-
-@implementation CDVWhitelistTests
-
-- (void)setUp
-{
-    [super setUp];
-
-    // setup code here
-}
-
-- (void)tearDown
-{
-    // Tear-down code here.
-
-    [super tearDown];
-}
-
-- (void)testAllowedSchemes
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"*.apache.org",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist schemeIsAllowed:@"http"]);
-    XCTAssertTrue([whitelist schemeIsAllowed:@"https"]);
-    XCTAssertTrue([whitelist schemeIsAllowed:@"ftp"]);
-    XCTAssertTrue([whitelist schemeIsAllowed:@"ftps"]);
-    XCTAssertFalse([whitelist schemeIsAllowed:@"gopher"]);
-}
-
-- (void)testSubdomainWildcard
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"*.apache.org",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://build.apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://sub1.sub0.build.apache.org"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org.ca"]]);
-}
-
-- (void)testCatchallWildcardOnly
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"*",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"https://build.apache.prg"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"ftp://MyDangerousSite.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"ftps://apache.org.SuspiciousSite.com"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"gopher://apache.org"]]);
-}
-
-- (void)testCatchallWildcardByProto
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"http://*",
-        @"https://*",
-        @"ftp://*",
-        @"ftps://*",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"https://build.apache.prg"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"ftp://MyDangerousSite.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"ftps://apache.org.SuspiciousSite.com"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"gopher://apache.org"]]);
-}
-
-- (void)testExactMatch
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"www.apache.org",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://www.apache.org"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://build.apache.org"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org"]]);
-}
-
-- (void)testNoMatchInQueryParam
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"www.apache.org",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"www.malicious-site.org?url=http://www.apache.org"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"www.malicious-site.org?url=www.apache.org"]]);
-}
-
-- (void)testIpExactMatch
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"192.168.1.1",
-        @"192.168.2.1",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.1.1"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.2.1"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.3.1"]]);
-}
-
-- (void)testIpWildcardMatch
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"192.168.1.*",
-        @"192.168.2.*",
-        nil];
-    
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org"]]);
-    
-    // Ever since Cordova 3.1, whitelist wildcards are simplified, only "*" and "*.apache.org" (subdomain example) are allowed. Therefore the next four tests should fail
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.1.1"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.1.2"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.2.1"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.2.2"]]);
-    
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://192.168.3.1"]]);
-}
-
-- (void)testHostnameExtraction
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"http://apache.org/",
-        @"http://apache.org/foo/bar?x=y",
-        @"ftp://apache.org/foo/bar?x=y",
-        @"ftps://apache.org/foo/bar?x=y",
-        @"http://apache.*/foo/bar?x=y",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://apache.org/"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://google.com/"]]);
-}
-
-- (void)testWhitelistRejectionString
-{
-    NSArray* allowedHosts = [NSArray arrayWithObject:@"http://www.yahoo.com/"];  // Doesn't matter in this test.
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    NSURL* testUrl = [NSURL URLWithString:@"http://www/google.com"];
-    NSString* errorString = [whitelist errorStringForURL:testUrl];
-    NSString* expectedErrorString = [NSString stringWithFormat:kCDVDefaultWhitelistRejectionString, [testUrl absoluteString]];
-
-    XCTAssertTrue([expectedErrorString isEqualToString:errorString], @"Default error string has an unexpected value.");
-
-    whitelist.whitelistRejectionFormatString = @"Hey, '%@' is, like, bogus man!";
-    errorString = [whitelist errorStringForURL:testUrl];
-    expectedErrorString = [NSString stringWithFormat:whitelist.whitelistRejectionFormatString, [testUrl absoluteString]];
-    XCTAssertTrue([expectedErrorString isEqualToString:errorString], @"Customized whitelist rejection string has unexpected value.");
-}
-
-- (void)testSpecificProtocol
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"http://www.apache.org",
-        @"cordova://www.google.com",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://www.apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"cordova://www.google.com"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"cordova://www.apache.org"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"http://www.google.com"]]);
-}
-
-- (void)testWildcardPlusOtherUrls
-{
-    // test for https://issues.apache.org/jira/browse/CB-3394
-
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"*",
-        @"cordova.apache.org",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://*.apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"https://www.google.com"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"ftp://cordova.apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://cordova.apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"https://cordova.apache.org"]]);
-}
-
-- (void)testWildcardPlusScheme
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"http://*.apache.org",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://www.apache.org"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"https://www.google.com"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"ftp://cordova.apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://cordova.apache.org"]]);
-    XCTAssertFalse([whitelist URLIsAllowed:[NSURL URLWithString:@"https://cordova.apache.org"]]);
-}
-
-- (void)testCredentials
-{
-    NSArray* allowedHosts = [NSArray arrayWithObjects:
-        @"http://*.apache.org",
-        @"http://www.google.com",
-        nil];
-
-    CDVWhitelist* whitelist = [[CDVWhitelist alloc] initWithArray:allowedHosts];
-
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://user:pass@www.apache.org"]]);
-    XCTAssertTrue([whitelist URLIsAllowed:[NSURL URLWithString:@"http://user:pass@www.google.com"]]);
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/AppDelegate.h
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/AppDelegate.h b/CordovaLibTests/CordovaLibApp/AppDelegate.h
deleted file mode 100644
index d26fb8e..0000000
--- a/CordovaLibTests/CordovaLibApp/AppDelegate.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <UIKit/UIKit.h>
-
-@class ViewController;
-
-@interface AppDelegate : UIResponder <UIApplicationDelegate>
-
-@property (strong, nonatomic) UIWindow* window;
-
-@property (strong, nonatomic) ViewController* viewController;
-
-- (void)createViewController;
-- (void)destroyViewController;
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/AppDelegate.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/AppDelegate.m b/CordovaLibTests/CordovaLibApp/AppDelegate.m
deleted file mode 100644
index 065abd4..0000000
--- a/CordovaLibTests/CordovaLibApp/AppDelegate.m
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import "AppDelegate.h"
-
-#import "ViewController.h"
-
-@implementation AppDelegate
-
-@synthesize window = _window;
-@synthesize viewController = _viewController;
-
-- (id)init
-{
-    NSHTTPCookieStorage* cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
-
-    [cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
-
-    self = [super init];
-    return self;
-}
-
-- (void)createViewController
-{
-    NSAssert(!self.viewController, @"ViewController already created.");
-
-    self.viewController = [[ViewController alloc] init];
-    self.viewController.wwwFolderName = @"www";
-    self.viewController.startPage = @"index.html";
-
-    // NOTE: To customize the view's frame size (which defaults to full screen), override
-    // [self.viewController viewWillAppear:] in your view controller.
-
-    self.window.rootViewController = self.viewController;
-}
-
-- (void)destroyViewController
-{
-    self.viewController = nil;
-}
-
-- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
-{
-    CGRect screenBounds = [[UIScreen mainScreen] bounds];
-
-    self.window = [[UIWindow alloc] initWithFrame:screenBounds];
-    self.window.autoresizesSubviews = YES;
-
-    // Create the main view on start-up only when not running unit tests.
-    if (!NSClassFromString(@"CDVWebViewTest")) {
-        [self createViewController];
-    }
-
-    [self.window makeKeyAndVisible];
-
-    return YES;
-}
-
-- (void)applicationWillResignActive:(UIApplication*)application
-{
-    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
-    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
-}
-
-- (void)applicationDidEnterBackground:(UIApplication*)application
-{
-    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
-    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
-}
-
-- (void)applicationWillEnterForeground:(UIApplication*)application
-{
-    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
-}
-
-- (void)applicationDidBecomeActive:(UIApplication*)application
-{
-    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
-}
-
-- (void)applicationWillTerminate:(UIApplication*)application
-{
-    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/CordovaLibApp-Info.plist
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/CordovaLibApp-Info.plist b/CordovaLibTests/CordovaLibApp/CordovaLibApp-Info.plist
deleted file mode 100644
index 6c21097..0000000
--- a/CordovaLibTests/CordovaLibApp/CordovaLibApp-Info.plist
+++ /dev/null
@@ -1,45 +0,0 @@
-<?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>en</string>
-	<key>CFBundleDisplayName</key>
-	<string>${PRODUCT_NAME}</string>
-	<key>CFBundleExecutable</key>
-	<string>${EXECUTABLE_NAME}</string>
-	<key>CFBundleIdentifier</key>
-	<string>org.apache.cordova.cordovalibapptests.${PRODUCT_NAME:rfc1034identifier}</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleName</key>
-	<string>${PRODUCT_NAME}</string>
-	<key>CFBundlePackageType</key>
-	<string>APPL</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleSignature</key>
-	<string>????</string>
-	<key>CFBundleVersion</key>
-	<string>1.0</string>
-	<key>LSRequiresIPhoneOS</key>
-	<true/>
-	<key>UIRequiredDeviceCapabilities</key>
-	<array>
-		<string>armv7</string>
-	</array>
-	<key>UISupportedInterfaceOrientations</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-		<string>UIInterfaceOrientationLandscapeLeft</string>
-		<string>UIInterfaceOrientationLandscapeRight</string>
-	</array>
-	<key>UISupportedInterfaceOrientations~ipad</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-		<string>UIInterfaceOrientationPortraitUpsideDown</string>
-		<string>UIInterfaceOrientationLandscapeLeft</string>
-		<string>UIInterfaceOrientationLandscapeRight</string>
-	</array>
-</dict>
-</plist>

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/ViewController.h
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/ViewController.h b/CordovaLibTests/CordovaLibApp/ViewController.h
deleted file mode 100644
index befeaae..0000000
--- a/CordovaLibTests/CordovaLibApp/ViewController.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <UIKit/UIKit.h>
-#import "CDVViewController.h"
-
-@interface ViewController : CDVViewController
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/ViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/ViewController.m b/CordovaLibTests/CordovaLibApp/ViewController.m
deleted file mode 100644
index 7de6791..0000000
--- a/CordovaLibTests/CordovaLibApp/ViewController.m
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import "ViewController.h"
-
-@interface ViewController ()
-
-@end
-
-@implementation ViewController
-
-- (void)viewWillAppear:(BOOL)animated
-{
-    // View defaults to full size.  If you want to customize the view's size, or its subviews (e.g. webView),
-    // you can do so here.
-
-    [super viewWillAppear:animated];
-}
-
-- (void)viewDidLoad
-{
-    [super viewDidLoad];
-    // Do any additional setup after loading the view, typically from a nib.
-}
-
-- (void)viewDidUnload
-{
-    [super viewDidUnload];
-    // Release any retained subviews of the main view.
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
-    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
-}
-
-@end

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/config.xml
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/config.xml b/CordovaLibTests/CordovaLibApp/config.xml
deleted file mode 100644
index 1fcc8d7..0000000
--- a/CordovaLibTests/CordovaLibApp/config.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<widget xmlns     = "http://www.w3.org/ns/widgets"
-        id        = "io.cordova.helloCordova"
-        version   = "2.0.0">
-    <name>Hello Cordova</name>
-
-    <description>
-        A sample Apache Cordova application that responds to the deviceready event.
-    </description>
-
-    <author href="http://cordova.io" email="dev@cordova.apache.org">
-        Apache Cordova Team
-    </author>
-
-    <access origin="*"/>
-
-    <!-- <content src="http://mysite.com/myapp.html" /> for external pages -->
-    <content src="index.html" />
-
-    <!-- Preferences for iOS -->
-    <preference name="AllowInlineMediaPlayback" value="false" />
-    <preference name="BackupWebStorage" value="cloud" />
-    <preference name="DisallowOverscroll" value="false" />
-    <preference name="EnableViewportScale" value="false" />
-    <preference name="KeyboardDisplayRequiresUserAction" value="true" />
-    <preference name="MediaPlaybackRequiresUserAction" value="false" />
-    <preference name="SuppressesIncrementalRendering" value="false" />
-    <preference name="TopActivityIndicator" value="gray" />
-    <preference name="GapBetweenPages" value="0" />
-    <preference name="PageLength" value="0" />
-    <preference name="PaginationBreakingMode" value="page" /> <!-- page, column -->
-    <preference name="PaginationMode" value="unpaginated" /> <!-- unpaginated, leftToRight, topToBottom, bottomToTop, rightToLeft -->
-
-    <feature name="LocalStorage">
-        <param name="ios-package" value="CDVLocalStorage"/>
-    </feature>
-</widget>

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/en.lproj/InfoPlist.strings
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/en.lproj/InfoPlist.strings b/CordovaLibTests/CordovaLibApp/en.lproj/InfoPlist.strings
deleted file mode 100644
index 01d5c8c..0000000
--- a/CordovaLibTests/CordovaLibApp/en.lproj/InfoPlist.strings
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
- 
- http://www.apache.org/licenses/LICENSE-2.0
- 
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-/* Localized versions of Info.plist keys */
-

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/main.m
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/main.m b/CordovaLibTests/CordovaLibApp/main.m
deleted file mode 100644
index 120ac53..0000000
--- a/CordovaLibTests/CordovaLibApp/main.m
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <UIKit/UIKit.h>
-
-#import "AppDelegate.h"
-
-int main(int argc, char* argv[])
-{
-    @autoreleasepool {
-        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
-    }
-}

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibApp/www/index.html
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/www/index.html b/CordovaLibTests/CordovaLibApp/www/index.html
deleted file mode 100644
index 7f8bc5a..0000000
--- a/CordovaLibTests/CordovaLibApp/www/index.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!--
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-# http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
--->
-  <head>
-  <title></title>
-  
-    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
-	<meta charset="utf-8">
-
-
-	<!-- iPad/iPhone specific css below, add after your main css >
-	<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />		
-	<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />		
-	-->
-	<!-- If your application is targeting iOS BEFORE 4.0 you MUST put json2.js from http://www.JSON.org/json2.js into your www directory and include it here -->
-	<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-    <script type="text/javascript">
-
-
-	// If you want to prevent dragging, uncomment this section
-	/*
-	function preventBehavior(e) 
-	{ 
-      e.preventDefault(); 
-    };
-	document.addEventListener("touchmove", preventBehavior, false);
-	*/
-	
-	/* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
-	see http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
-	for more details -jm */
-	/*
-	function handleOpenURL(url)
-	{
-		// TODO: do something with the url passed in.
-	}
-	*/
-	
-	function onBodyLoad()
-	{		
-		document.addEventListener("deviceready", onDeviceReady, false);
-	}
-	
-	/* When this function is called, Cordova has been initialized and is ready to roll */
-	/* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
-	see http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
-	for more details -jm */
-	function onDeviceReady()
-	{
-    // Used by unit tests to tell when the page is loaded.
-    window.pageIsLoaded = true;
-		// do your thing!
-		console.log("Cordova is working")
-	}
-    
-    </script>
-  </head>
-  <body onload="onBodyLoad()">
-	<h1>Hey, it's Cordova!</h1>
-	<ol>
-		<li>Check your console log for any white-list rejection errors.</li>
-		<li>Add your allowed <strong>hosts</strong> in config.xml as access tags and set the origin attribute. (wildcards OK, don't enter the URL scheme)</li>
-	</ol>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/cba612ff/CordovaLibTests/CordovaLibTests-Info.plist
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibTests-Info.plist b/CordovaLibTests/CordovaLibTests-Info.plist
deleted file mode 100644
index a57a78d..0000000
--- a/CordovaLibTests/CordovaLibTests-Info.plist
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-# http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
--->
-<!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>en</string>
-	<key>CFBundleExecutable</key>
-	<string>${EXECUTABLE_NAME}</string>
-	<key>CFBundleIdentifier</key>
-	<string>org.apache.cordova.${PRODUCT_NAME:rfc1034identifier}</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundlePackageType</key>
-	<string>BNDL</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleSignature</key>
-	<string>????</string>
-	<key>CFBundleVersion</key>
-	<string>1</string>
-</dict>
-</plist>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message