This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create an optional expectation for a spec. | |
* @param actual Actual computed value to test expectations against. | |
*/ | |
export function expectOptionally<T>(actual: any): jasmine.Matchers<T> { | |
if (!isNullOrUndefined(actual)) { | |
return expect(actual); | |
} | |
const voidExpect = new Proxy(expect(actual), | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.willowtreeapps.demo; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.KeyEvent; | |
import android.view.Window; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; | |
public class MainActivity extends Activity { |