Home | History | Annotate | Download | only in shadows
      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
     13     public void cancel() {
     14         wasCancelled = true;
     15     }
     16 
     17     public boolean wasCancelled() {
     18         return wasCancelled;
     19     }
     20 }
     21