Commit Graph

25 Commits

Author SHA1 Message Date
amaitland cc9ae06f63 Upgrade to 142.0.14+gceaf578+chromium-142.0.7444.163 / Chromium 142.0.7444.163 2025-11-21 18:07:50 +10:00
amaitland 185d496e28 Test - Use SwANGLE
- Use --use-gl=angle --use-angle=swiftshader command line arg

Tests are still failing sometimes due to GPU crash. We cannot add an app.manifest to the test runner, so hopefully this helps.

https://ci.appveyor.com/project/cefsharp/cefsharp/builds/52468153#L1912
2025-07-28 18:31:43 +10:00
amaitland 4bdf4f8b17 Tests - Disable GPU Compositing 2025-03-23 09:35:58 +10:00
amaitland 36dc1b7ece Core - Add Cef.ApiHash
Issue #5066
2025-03-16 13:11:10 +10:00
amaitland 236e494792 Tests - Disable GPU Acceleration
There have been transient crashes of the tests when run via Appveyor

https://ci.appveyor.com/project/cefsharp/cefsharp/builds/51568290#L3321
2025-02-24 07:21:08 +10:00
Alex Maitland 57f8cd344f Core - Change Cef.IsInitialized from bool to bool? (#4869)
Resolves #4867
2024-08-14 17:19:34 +10:00
Alex Maitland 43321f74e6 WinForms/WPF/OffScreen - Change to using Chrome bootstrap by default
Issue #4835
2024-06-16 08:37:16 +10:00
Alex Maitland 7af16b9571 Add IWindowInfo.RuntimeStyle
- CEF will remove the alloy bootstrap (likely in M127)
- Change examples to use the `Chrome Runtime`
-

Issue https://github.com/chromiumembedded/cef/issues/3685
2024-05-06 11:03:04 +10:00
Alex Maitland f5c601d608 Test - Add more logging
- Reduce verbosity to normal
- Remove appveyor specific logging for now
- Add TestCaseOrderer to output message before test run
2022-12-05 09:10:55 +10:00
Alex Maitland a819fc4e4d Test - Add EvaluateScriptAsPromiseAsyncFacts
- Move tests from OffScreenBrowserBasicFacts
- Enable Cef.WaitForBrowsersToClose();
2022-09-19 16:35:45 +10:00
Alex Maitland c3fdd77e8d Test - Add comment out command line arg for debugging 2022-09-06 13:08:10 +10:00
Alex Maitland 15cb6d4754 Core - BrowserRefCount add some basic logging
Logs some basic information so we can see what type of ChromiumWebBrowser hasn't been closed
within as part of the xUnit tests.

* Meant for internal use and might be subject to change.
2022-05-31 15:43:34 +10:00
Alex Maitland 0386220e06 JavascriptBinding - Add JavascriptBindingSettings.JavascriptBindingApiEnabled property (#3571)
- The Javascript methods that CefSharp provides in relation to JavaScript Binding are
  created using a Global (window) Object. Settings this property allows you to disable
  the creation of this object. Features like EvaluateScriptAsPromiseAsync that rely on
  the creation of this object will no longer function.
2021-06-04 13:26:00 +10:00
Alex Maitland 11c41aea0d Test - CachePath should be child of RootCachePath 2021-05-12 11:00:08 +10:00
Alex Maitland 3eca8bdba6 Enhancement - Simplify Setting of RequestContext Proxy (#3250)
Core - Simplify Setting of Proxy for new RequestContext

- Throw exception if requestContext.CanSetPreference returns false.
Proxy likely set via command line args.
- Add IRequestContext.SetPreferenceAsync
-  Test - Add SelfHosted Proxy
Use Titanium.Web.Proxy to self host a proxy for testing proxy settings
Only run Proxy Tests when run locally
- Add RequestContext Builder Fluent API
2020-10-13 13:40:46 +10:00
amaitland ae41e10d71 Core - Javascript Binding Configure Property Name
- Rename settings object to JavascriptBindingSettings
- Validate JavascriptBindingSettings.JsBindingGlobalObjectName in setter to provide immediate
  feedback
- Add FreezableBase which throws exception when frozen (we can reuse this for some other settings classes)
- Add some basic Unit Tests (More would be better)

Follow on from #3126
2020-05-30 19:28:50 +10:00
amaitland 6b440a84a3 Shutdown - Improve WaitForBrowsersToClose
- Add Cef.PreShutdown
- For WPF hook the DispatcherShutdownStarted and DispatcherShutdownFinished events then call Cef.PreShutdown
- Add NoOpBrowserRefCounter and set as default, needs a little more testing before it's enabled by default.
  Can be enabled by calling Cef.EnableWaitForBrowsersToClose before calling Cef.Initialize

Issue #3047
2020-05-03 21:58:05 +10:00
campersau cde3f385f9 Test - Add CefSharp WPF / WinForms CanLoadGoogle Test Case (#3069)
* enable CefSharp Wpf tests

* enable CefSharp WinForms tests

* using assembly resolver to fix serialization exception when using Xunit.StaFact with default appdomain
2020-03-03 05:30:41 +10:00
campersau 5dd127f134 use Nito.AsyncEx for running methods on the same thread 2020-03-01 22:45:08 +01:00
campersau e184fe2757 make sure Cef.Shutdown is called on the same thread as Cef.Initialize 2020-02-29 14:22:48 +01:00
campersau f1c182853f demonstrate that Cef.Shutdown is currently called on a different thread 2020-02-29 13:47:27 +01:00
amaitland 21d272f443 CefSharp.Test - Call Cef.Shutdown on the same thread that created the CefSharpFixture instance 2019-10-01 21:39:14 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland d87e795000 WinForms/Wpf/OffScreen - Create specific CefSettings class for each version
- This is a breaking change as there is no common `CefSharp.CefSettings`, there is no `CefSharp.Wpf.CefSettings`, `CefSharp.WinForms.CefSettings` and `CefSharp.OffScreen.CefSettings`
 - Cef.Initialize has been removed, the `ChromiumWebBrowser` constructor will call the `Cef.Initialize` with the defaults for your flavour
 - CefSettings.FocusedNodeChangedEnabled has been moved to CefSharpSettings.FocusedNodeChangedEnabled

Resolves #2477
2018-08-02 10:47:12 +10:00
amaitland 9407ba1828 Due to limitations of VC++ we must run our tests in the default appdomain, it's possible to use xunit for testing.
Readd CefSharp.Test.csproj to solution
Add some very basic unit tests using xunit, DisableTestParallelization, Set xunit.appDomain to denied in app.config to disable using appdomains (https://xunit.github.io/docs/configuring-with-xml.html)
Add xunit vs test running packages, using 2.2.0 version as 2.3.0 was throwing an exception similar to https://github.com/xunit/xunit/issues/1514
TODO: Take a look at https://github.com/NuGet/NuGetGallery/tree/master/tests/NuGetGallery.Facts for some ideas on structuring xunit tests (look at implementing Theory)

NOTE: I am not providing this as a definitive set of tests, it's simply here to get someone else started in creating tests as it appears people have trouble dealing with AppDomain problem
Only includes Tests for the OffScreen version at this stage.
2017-10-25 10:44:38 +10:00