forked from github/cordova-android
Fixing the tests so that they run as an Activity again
This commit is contained in:
parent
d5895c635a
commit
cf494f3238
@ -20,6 +20,7 @@
|
|||||||
package org.apache.cordova.test;
|
package org.apache.cordova.test;
|
||||||
|
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
|
import java.util.concurrent.Executors;
|
||||||
|
|
||||||
import org.apache.cordova.CordovaWebView;
|
import org.apache.cordova.CordovaWebView;
|
||||||
import org.apache.cordova.api.CordovaInterface;
|
import org.apache.cordova.api.CordovaInterface;
|
||||||
@ -33,6 +34,8 @@ import android.os.Bundle;
|
|||||||
public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
|
public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
|
||||||
CordovaWebView cordovaWebView;
|
CordovaWebView cordovaWebView;
|
||||||
|
|
||||||
|
private final ExecutorService threadPool = Executors.newCachedThreadPool();
|
||||||
|
|
||||||
/** Called when the activity is first created. */
|
/** Called when the activity is first created. */
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
@ -87,6 +90,6 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
|
|||||||
|
|
||||||
public ExecutorService getThreadPool() {
|
public ExecutorService getThreadPool() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return threadPool;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user