protected override void CreateWebView() { WebView = new UI.Controls.WinForms.WebView() { IsScriptNotifyAllowed = true }; }
public void CanInitializeCtorBeginEndInit() { var wv = new UI.Controls.WinForms.WebView(); ((ISupportInitialize)wv).BeginInit(); ((ISupportInitialize)wv).EndInit(); }
protected override void CreateWebView() { WebView = new UI.Controls.WinForms.WebView(); ((ISupportInitialize)WebView).BeginInit(); ((ISupportInitialize)WebView).EndInit(); WebView.ShouldNotBeNull(); WebView.Process.ShouldNotBeNull(); }
public void DesignerPropertyEqualsSettingsProperty() { var wv = new UI.Controls.WinForms.WebView(); ((ISupportInitialize)wv).BeginInit(); wv.IsScriptNotifyAllowed = !wv.IsScriptNotifyAllowed; ((ISupportInitialize)wv).EndInit(); wv.IsScriptNotifyAllowed.ShouldEqual(wv.Settings.IsScriptNotifyAllowed); }
protected override void CreateWebView() { WebView = new UI.Controls.WinForms.WebView(); ((ISupportInitialize)WebView).BeginInit(); ((ISupportInitialize)WebView).EndInit(); WebView.ShouldNotBeNull(); WebView.Process.ShouldNotBeNull(); WebView.Process.ProcessId.ShouldNotEqual(0U); WebView.Process.ProcessExited += (o, e) => { _processExitedEventFired = true; _mre.Set(); }; }
protected override void CreateWebView() { // This is what Windows Forms designer emits WebView = new UI.Controls.WinForms.WebView(); ((ISupportInitialize)WebView).BeginInit(); Form.SuspendLayout(); WebView.Dock = DockStyle.Fill; WebView.Size = Form.ClientSize; WebView.IsScriptNotifyAllowed = true; WebView.IsIndexedDBEnabled = true; WebView.IsJavaScriptEnabled = true; WebView.Visible = true; Form.Controls.Add(WebView); ((ISupportInitialize)WebView).EndInit(); Form.ResumeLayout(false); Form.PerformLayout(); WebView.IsScriptNotifyAllowed.ShouldBeTrue(); WebView.IsIndexedDBEnabled.ShouldBeTrue(); WebView.IsJavaScriptEnabled.ShouldBeTrue(); }
protected override void When() { _webView2 = new UI.Controls.WinForms.WebView(WebViewControlProcess.CreateWebViewControlHost(Form.Handle, Form.ClientRectangle)); }
protected override void CreateWebView() { WebView = new UI.Controls.WinForms.WebView(); }
private async Task NewMethod(UI.Controls.WinForms.WebView a) { _actual = await a.InvokeScriptAsync("echoOneArgument", "exampleParameter").ConfigureAwait(false); Form.Close(); }
protected override void CreateWebView() { WebView = new UI.Controls.WinForms.WebView(); ((ISupportInitialize)WebView).BeginInit(); ((ISupportInitialize)WebView).EndInit(); }
public void CanInitializeCtorOnly() { var wv = new UI.Controls.WinForms.WebView(); wv.Process.ShouldBeNull(); }