Commit Graph

389 Commits

Author SHA1 Message Date
Alex Maitland 81ee417aa7 Upgrade to 107.1.9+g1f0a21a+chromium-107.0.5304.110 / Chromium 107.0.5304.110 2022-11-14 13:59:06 +10:00
Alex Maitland fe1e0b4a0b Upgrade to 107.1.5+g58ed78e+chromium-107.0.5304.88 / Chromium 107.0.5304.88 2022-11-10 12:39:24 +10:00
Alex Maitland e30ecc3756 Tests - Skip failing BrowserRefCountDecrementedOnDispose for now 2022-11-02 12:47:09 +10:00
Alex Maitland 91b79262fa Upgrade to 107.1.4+geb36a79+chromium-107.0.5304.68 / Chromium 107.0.5304.68 2022-10-30 13:07:15 +10:00
Alex Maitland baf487f958 Test - CefTimeUtilsFacts.FromBaseTimeToDateTimeShouldWork add precision
- Add precision to deal with minor loss in precision (expected)
- Fix actual/expected order
2022-10-17 14:03:38 +10:00
Alex Maitland 0f99d4f945 Core - Migrate from CefTime to CefBaseTime (Support dates less than Windows Epoch)
- DateTime won't work for anything less than Windows Epoch so we have to manually
  handle those dates.

Issues #4234
2022-10-16 13:29:19 +10:00
Alex Maitland 60df304c93 Upgrade to 106.0.29+gc10d419+chromium-106.0.5249.119 / Chromium 106.0.5249.119 2022-10-16 12:03:40 +10:00
Alex Maitland 9db6bec21b Core - Migrate from CefTime to CefBaseTime (Add custom conversion support)
- Add new IBaseTimeConverter interface to allow for custom conversion of DateTime to/from CefBaseTime
- Add some CefTimeUtils tests

Issues #4234 #4272
2022-10-16 11:51:04 +10:00
Alex Maitland bda48d4c6e Upgrade to 106.0.26+ge105400+chromium-106.0.5249.91 / Chromium 106.0.5249.91 2022-10-05 11:45:32 +10:00
Alex Maitland f84f3986cf Test - Tweaks to browser ref count logging 2022-10-04 14:17:36 +10:00
Alex Maitland 252f2cd99b Upgrade to 106.0.25+gf7fefe5+chromium-106.0.5249.61 / Chromium 106.0.5249.61 2022-10-04 10:54:08 +10:00
Alex Maitland a12023a449 Test - Add additional logging to hopefully find the test that's keeping a browser ref count alive 2022-09-21 10:45:17 +10:00
Alex Maitland da94de224e Upgrade to 106.0.20+g354064a+chromium-106.0.5249.12 / Chromium 106.0.5249.12 2022-09-21 10:02:14 +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 0ad6310e87 Upgrade to 105.3.39+g2ec21f9+chromium-105.0.5195.127 / Chromium 105.0.5195.127 2022-09-19 16:35:45 +10:00
Alex Maitland 303ad85449 Revert "Test - Renable JavascriptBinding IntegrationTestFacts"
This partially reverts commit 3899f32268.

- Keep new RequestContext test code
2022-09-08 13:17:33 +10:00
Alex Maitland 3899f32268 Test - Renable JavascriptBinding IntegrationTestFacts
- Now that https://bitbucket.org/chromiumembedded/cef/issues/3260/support-reconnect-of-mojo-frame-channel has been resovled see if the
tests will run on appveyor reliable
- Use a new RequestContext to isolate the unreliable test cases.

Issue #3867
2022-09-08 11:17:34 +10:00
Alex Maitland e8236f0330 Test - Fix IntegrationTestFacts.LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion local failure
- Use a new RequestContext so the test is run in it's own process
2022-09-08 11:17:34 +10:00
Alex Maitland f3676bed4e Upgrade to 105.3.33+gd83f874+chromium-105.0.5195.102 / Chromium 105.0.5195.102 2022-09-08 11:17:33 +10:00
Alex Maitland beca2863a8 Core - Migrate from CefTime to CefBaseTime (CookieManger Tests)
- Add basic xUnit test
- Don't set Creation/LastAccess on cookie creation, these are set internally in Chromium
  and are left uninitialized until the cookie is read back from the browser

I haven't tested though I suspect Cookie.Expiry was incorrectly set when Local/Unspecified DateTime was used
cookies are always in GMT

Issue #4234
2022-09-07 10:56:29 +10:00
Alex Maitland 416ed308c2 Core - Migrate from CefTime to CefBaseTime (Execution/Binding)
- Convert more of the methods used by JavaScript binding/execution
- Fix naming of FromDateTimeToBaseTime

Issue #4234
2022-09-06 19:39:43 +10:00
Alex Maitland 48d2619dee Test - Fix failing EvaluateScriptAsyncFacts.CanEvaluateDateValues test
- Cannot currently eval 1970-01-01 as it's converted to MinVal

#4234
2022-09-06 14:28:23 +10:00
Alex Maitland c3fdd77e8d Test - Add comment out command line arg for debugging 2022-09-06 13:08:10 +10:00
Alex Maitland 25e9c2f440 Test - Add EvaluateScriptAsyncFacts.CanEvaluateDateValues
- Add explicit test for dates
2022-09-06 13:07:38 +10:00
Alex Maitland 6be92988d2 Upgrade to 105.3.25+g0ca6a9e+chromium-105.0.5195.54 / Chromium 105.0.5195.54 2022-09-04 10:40:53 +10:00
Alex Maitland 2ead423380 Core - Improve JavascriptObjectRepository.TryCallMethod Object Not Found error message
- Add method name and param count

Resolves #4209
2022-08-21 13:44:34 +10:00
Alex Maitland 01310244ee Upgrade to 104.4.24+gdf482f6+chromium-104.0.5112.102 / Chromium 104.0.5112.102 2022-08-21 13:31:04 +10:00
Alex Maitland 32f442e0e4 Test - FolderSchemeHandlerFactoryTests.CanDeleteFileAfterLoading
Integration test for #4119
2022-08-09 11:16:22 +10:00
Alex Maitland ffad5f6bfd Tests - Skip LoadJavaScriptBindingQunitTestsSuccessfulCompletion if run on Appveyor
#Issue 3867
2022-08-09 10:23:55 +10:00
Alex Maitland 6713caf739 Test - Increase Cef.WaitForBrowsersToClose timeout 2022-08-09 10:18:48 +10:00
Alex Maitland b94f08e4b1 Test - Skip LoadJavaScriptBindingQunitTestsSuccessfulCompletion
Issue #3867
2022-08-09 10:18:47 +10:00
Alex Maitland d413f481dd Upgrade to 104.4.18+g2587cf2+chromium-104.0.5112.81 / Chromium 104.0.5112.81 2022-08-08 11:18:43 +10:00
Alex Maitland 6467ece9b6 Upgrade to 104.4.15+g12fbff8+chromium-104.0.5112.65 / Chromium 104.0.5112.65 2022-08-02 13:14:32 +10:00
Alex Maitland 644b2b5e8c Test - Fix NetCore FolderSchemeHandlerFactoryTests.CanWork path 2022-07-03 11:03:20 +10:00
Alex Maitland 81d2168262 Upgrade to CEF 103.0.8+g444ebe7+chromium-103.0.5060.66 / Chromium 103.0.5060.66 2022-07-01 09:34:44 +10:00
Alex Maitland 2788ec0704 Upgrade to CEF 103.0.6+ge38efd5+chromium-103.0.5060.53 / Chromium 103.0.5060.53 2022-06-21 11:47:09 +10:00
Alex Maitland 550552f210 Test - Add FolderSchemeHandlerFactoryTests
- Basic test to dynamically register a FolderSchemeHandlerFactory
2022-06-21 11:24:26 +10:00
Alex Maitland 2cd1c9b5ae Core - Add Cef.WaitForBrowsersToClose(int) overload
- Allow for specifying the timeout in ms
- Update the tests to 5000ms timeout
2022-06-20 13:03:15 +10:00
Alex Maitland be89729d62 Test - Upgrade xunit VS runner
Must manually include Microsoft.NET.Test.Sdk

https://stackoverflow.com/a/63786758/4583726
2022-06-14 13:36:50 +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 81178bb9ba Test - Increase BrowserRefCountDecrementedOnDispose reliability 2022-05-31 14:08:00 +10:00
Alex Maitland 787665bcfe Core - WebBrowserExtensions throw explicit ObjectDisposedException if IsDisposed
- Make it clear that the ChromiumWebBrowser instance has been disposed.
  Previously when the browser was disposed BrowserCore would be null.
  An explicit ObjectDisposedException is now thrown.
2022-05-31 10:56:13 +10:00
Alex Maitland cae407f9f1 WPF/OffScreen - Add WaitForRenderIdleAsync CancellationToken test 2022-05-30 19:22:25 +10:00
Alex Maitland b8b27f6885 WPF/OffScreen - Add WaitForRenderIdleAsync (#4080)
* WPF/OffScreen - Add WaitForRenderIdleAsync

- Task resolves when render has been idle for the specified time
- Make TaskTimeoutExtensions public (they're not extension methods as this was expected)
2022-05-30 19:11:17 +10:00
Alex Maitland 923e687fda Upgrade to CEF 102.0.9+g1c5e658+chromium-102.0.5005.63 / Chromium 102.0.5005.63 2022-05-30 13:37:46 +10:00
Alex Maitland d701cee655 Enhancement - Add WaitForSelectorAsync extension method. (#4095)
* Enhancement - Add WaitForSelectorAsync extension method.

string script = "const newDiv = document.createElement('div'); newDiv.id = 'myElement'; document.body.append(newDiv);";
await Task.WhenAll(
     browser.WaitForSelectorAsync("#myElement");,
     chromiumWebBrowser.EvaluateScriptAsync(script));

Resolves #4094
2022-05-30 12:00:18 +10:00
Alex Maitland 0c6289322f Upgrade to CEF 102.0.6+g4209780+chromium-102.0.5005.61 / Chromium 102.0.5005.61 2022-05-24 14:54:48 +10:00
Alex Maitland c5f861594d Upgrade to CEF 102.0.5+gf11ca74+chromium-102.0.5005.49 / Chromium 102.0.5005.49 2022-05-17 19:33:34 +10:00
Alex Maitland 7eb6d6f3b7 OffScreen - CaptureScreenshotAsync change to Scale default
- Previously when no Scale was specified, then the previous ChromiumWebBrowser scale was used.
- Now Viewport defaults to a scale of 1, so the behaviour has been changed so the scale passed as
  the param is always used.
- Test updated

This is a minor breaking change.

Resolves #4091
2022-05-05 19:27:29 +10:00
Alex Maitland dce81299fe WPF - Remove EmbeddedCursor workaround
Bug was fixed upstream and now no longer required.

Related issue #4021
2022-05-05 12:40:55 +10:00