
org.robolectric.shadows.ShadowJsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import android.webkit.JsResult;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@Implements(JsResult.class)
public class ShadowJsResult {
private boolean wasCancelled;
@Implementation
protected void cancel() {
wasCancelled = true;
}
public boolean wasCancelled() {
return wasCancelled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy