You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/08/07 21:33:57 UTC

ios commit: Fixed warnings in CordovaTests

Updated Branches:
  refs/heads/master 4c37661a6 -> f72620487


Fixed warnings in CordovaTests


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

Branch: refs/heads/master
Commit: f7262048703007b2ea84ef695be909e407161c9f
Parents: 4c37661
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Aug 7 12:33:51 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Aug 7 12:33:51 2012 -0700

----------------------------------------------------------------------
 CordovaLib/CordovaLibTests/CDVLocalStorageTests.m |    4 ++--
 CordovaLib/CordovaLibTests/CDVWebViewTest.m       |    2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/f7262048/CordovaLib/CordovaLibTests/CDVLocalStorageTests.m
----------------------------------------------------------------------
diff --git a/CordovaLib/CordovaLibTests/CDVLocalStorageTests.m b/CordovaLib/CordovaLibTests/CDVLocalStorageTests.m
index ad936dc..fca0586 100644
--- a/CordovaLib/CordovaLibTests/CDVLocalStorageTests.m
+++ b/CordovaLib/CordovaLibTests/CDVLocalStorageTests.m
@@ -70,7 +70,7 @@
         [self evalJs:@"localStorage.setItem('foo', 'bar')"];
         return [localStorage shouldBackup]; 
     }];
-    [localStorage backup:nil withDict:nil];
+    [localStorage backup:[CDVInvokedUrlCommand new]];
     STAssertFalse([localStorage shouldBackup], @"Should have backed up.");
     
     // It would be nice to be able to test that the restore functionality
@@ -81,7 +81,7 @@
     // Instead, we just test the file copying logic.
     [self deleteOriginals:YES backups:NO];
     STAssertTrue([localStorage shouldRestore], @"Should restore after deleting originals");
-    [localStorage restore:nil withDict:nil];
+    [localStorage restore:[CDVInvokedUrlCommand new]];
     STAssertFalse([localStorage shouldRestore], @"Restore did not complete successfully");    
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/f7262048/CordovaLib/CordovaLibTests/CDVWebViewTest.m
----------------------------------------------------------------------
diff --git a/CordovaLib/CordovaLibTests/CDVWebViewTest.m b/CordovaLib/CordovaLibTests/CDVWebViewTest.m
index 79ce6e4..9c4dd1b 100644
--- a/CordovaLib/CordovaLibTests/CDVWebViewTest.m
+++ b/CordovaLib/CordovaLibTests/CDVWebViewTest.m
@@ -29,6 +29,8 @@
 
 @implementation CDVWebViewTest
 
+@synthesize webView;
+
 - (void)setUp
 {
     [super setUp];