You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2012/11/02 21:48:15 UTC

android commit: Fixing the tests so that they run as an Activity again

Updated Branches:
  refs/heads/master d5895c635 -> cf494f323


Fixing the tests so that they run as an Activity again


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

Branch: refs/heads/master
Commit: cf494f323808b5d209fa7040098b88595ecd64f1
Parents: d5895c6
Author: Joe Bowser <bo...@apache.org>
Authored: Fri Nov 2 13:48:05 2012 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Fri Nov 2 13:48:05 2012 -0700

----------------------------------------------------------------------
 .../cordova/test/CordovaWebViewTestActivity.java   |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/cf494f32/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
----------------------------------------------------------------------
diff --git a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
index 675ecc7..cc28282 100644
--- a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
+++ b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
@@ -20,6 +20,7 @@
 package org.apache.cordova.test;
 
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
 
 import org.apache.cordova.CordovaWebView;
 import org.apache.cordova.api.CordovaInterface;
@@ -33,6 +34,8 @@ import android.os.Bundle;
 public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
     CordovaWebView cordovaWebView;
 
+    private final ExecutorService threadPool = Executors.newCachedThreadPool();
+    
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
@@ -87,6 +90,6 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
 
     public ExecutorService getThreadPool() {
         // TODO Auto-generated method stub
-        return null;
+        return threadPool;
     }
 }
\ No newline at end of file