protected override void CreateWebView()
 {
     WebView = new UI.Controls.WinForms.WebView()
     {
         IsScriptNotifyAllowed = true
     };
 }
Esempio n. 2
0
        public void CanInitializeCtorBeginEndInit()
        {
            var wv = new UI.Controls.WinForms.WebView();

            ((ISupportInitialize)wv).BeginInit();
            ((ISupportInitialize)wv).EndInit();
        }
Esempio n. 3
0
        protected override void CreateWebView()
        {
            WebView = new UI.Controls.WinForms.WebView();
            ((ISupportInitialize)WebView).BeginInit();
            ((ISupportInitialize)WebView).EndInit();

            WebView.ShouldNotBeNull();
            WebView.Process.ShouldNotBeNull();
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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();
            };
        }
Esempio n. 6
0
        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();
        }
Esempio n. 7
0
 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();
        }
Esempio n. 10
0
 protected override void CreateWebView()
 {
     WebView = new UI.Controls.WinForms.WebView();
     ((ISupportInitialize)WebView).BeginInit();
     ((ISupportInitialize)WebView).EndInit();
 }
Esempio n. 11
0
        public void CanInitializeCtorOnly()
        {
            var wv = new UI.Controls.WinForms.WebView();

            wv.Process.ShouldBeNull();
        }