Commit Graph

7 Commits

Author SHA1 Message Date
amaitland 52e425012a Test - Skip JavascriptCallbackTests.ShouldCancelAfterV8ContextChange (Broken in M146) 2026-03-28 21:07:07 +10:00
amaitland 7d51bbe671 Tests - Revert test change as M143 reverts to the previous behaviour 2025-12-11 06:52:19 +10:00
Alex Maitland d78d01a2c4 Core - Rewrite RenderProcess to avoid using OnBrowserDestroyed for JS eval (#5197)
- JavascriptCallbackRegistry - Get BrowserId From V8Context
- Render Process - Rewrite to store root object wrapper by frame instead of per browser
-  Don't store JavascriptRootObjectWrapper in the browserWrapper as CEF is calling destroyed more than it should.
-  Revert "Tests - Simplify ShouldFailWhenIsObjectCachedCalledWithInvalidObjectName"

This reverts commit f8a81acf7a.

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
2025-12-03 19:00:12 +10:00
campersau 331ee6a305 Core - Cancel pending tasks when browser crashed or v8 context gets released (#5145)
* Core - Cancel pending tasks when browser crashed or v8 context gets released

* Use TrySetCanceled to cancel pending tasks

* Adjust test to use chrome://crash for simulating a crash

* Add tests for javascript callbacks

* Rename tests and add tests for calling Execute multiple times

* Move FramePendingTaskRepository to its own file

* Rename test to ShouldCancelAfterV8ContextChange

* Fix compile error on .NET Framework

* adjust ShouldTimeoutIfNavigationOccurs test which now throws a TaskCanceledException on navigation
2025-08-22 12:14:38 +10:00
campersau aed9ffd934 Test - Use invariant culture for double ToString (#5022) 2025-01-02 14:11:30 +10:00
amaitland c3339bd418 Test - Add JS Callback test that uses ExpandoObject (SerializeV8SimpleObject now supports Expando)
Follow up to #4959
2024-10-26 10:24:40 +10:00
Alex Maitland cafd378859 Test - Code Cleanup
- Start splitting tests out into own files where relevant
- Improve call ordering
- Use Assert.RaisesAsync where possible
- Classes have been renamed (Tests is now the standard suffix)

TODO: Some of the classes still need their method names changed
2023-02-17 13:53:23 +10:00