Search in sources :

Example 1 with CordovaPreferences

use of org.apache.cordova.CordovaPreferences in project cordova-android by apache.

the class StandardActivityTest method checkBackgroundIntentCheck.

@Test
public void checkBackgroundIntentCheck() {
    StandardActivity activity = (StandardActivity) mActivityRule.getActivity();
    final SystemWebView webView = (SystemWebView) activity.getWindow().getCurrentFocus();
    CordovaWebView webInterface = webView.getCordovaWebView();
    CordovaPreferences prefs = webInterface.getPreferences();
    assertFalse(prefs.getInteger("backgroundcolor", Color.BLACK) == Color.GREEN);
}
Also used : SystemWebView(org.apache.cordova.engine.SystemWebView) CordovaWebView(org.apache.cordova.CordovaWebView) CordovaPreferences(org.apache.cordova.CordovaPreferences) Test(org.junit.Test)

Aggregations

CordovaPreferences (org.apache.cordova.CordovaPreferences)1 CordovaWebView (org.apache.cordova.CordovaWebView)1 SystemWebView (org.apache.cordova.engine.SystemWebView)1 Test (org.junit.Test)1