@Test public void onDestroy_shouldFireJavascriptWebviewDidClose() throws Exception { subject.onDestroy(); verify(htmlInterstitialWebView).loadUrl(eq("javascript:webviewDidClose();")); }
@Override protected void onDestroy() { mHtmlInterstitialWebView.loadUrl(WEB_VIEW_DID_CLOSE.getUrl()); mHtmlInterstitialWebView.destroy(); broadcastAction(this, getBroadcastIdentifier(), ACTION_INTERSTITIAL_DISMISS); super.onDestroy(); }
MoPubActivity extends BaseInterstitialActivity { @Override protected void onDestroy() { mHtmlInterstitialWebView.loadUrl(WEB_VIEW_DID_CLOSE.getUrl()); mHtmlInterstitialWebView.destroy(); broadcastAction(this, getBroadcastIdentifier(), ACTION_INTERSTITIAL_DISMISS); super.onDestroy(); } }
MoPubActivity extends BaseInterstitialActivity { @Override protected void onDestroy() { mHtmlInterstitialWebView.loadUrl(WEB_VIEW_DID_CLOSE.getUrl()); mHtmlInterstitialWebView.destroy(); broadcastAction(this, getBroadcastIdentifier(), ACTION_INTERSTITIAL_DISMISS); super.onDestroy(); }  }
MoPubActivity extends BaseInterstitialActivity { @Override protected void onDestroy() { mHtmlInterstitialWebView.loadUrl(WEB_VIEW_DID_CLOSE.getUrl()); mHtmlInterstitialWebView.destroy(); broadcastAction(this, getBroadcastIdentifier(), ACTION_INTERSTITIAL_DISMISS); super.onDestroy(); }  static void start(Context context, String htmlData, AdReport adReport,
            boolean isScrollable, String redirectUrl, String clickthroughUrl,
            CreativeOrientation creativeOrientation, long broadcastIdentifier); @Override View getAdView(); }
MoPubActivity extends BaseInterstitialActivity { @Override protected void onDestroy() { mHtmlInterstitialWebView.loadUrl(WEB_VIEW_DID_CLOSE.getUrl()); mHtmlInterstitialWebView.destroy(); broadcastAction(this, getBroadcastIdentifier(), ACTION_INTERSTITIAL_DISMISS); super.onDestroy(); }  static void start(Context context, String htmlData, AdReport adReport,
            boolean isScrollable, String redirectUrl, String clickthroughUrl,
            CreativeOrientation creativeOrientation, long broadcastIdentifier); @Override View getAdView();  }