• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.xtremelabs.robolectric.shadows;
2 
3 import android.webkit.JsResult;
4 import com.xtremelabs.robolectric.internal.Implementation;
5 import com.xtremelabs.robolectric.internal.Implements;
6 
7 @Implements(JsResult.class)
8 public class ShadowJsResult {
9 
10     private boolean wasCancelled;
11 
12     @Implementation
cancel()13     public void cancel() {
14         wasCancelled = true;
15     }
16 
wasCancelled()17     public boolean wasCancelled() {
18         return wasCancelled;
19     }
20 }
21