Commit Graph

8 Commits

Author SHA1 Message Date
amaitland 918d12820e Tests - EvaluateScriptAsyncTests.ShouldCancelAfterV8ContextChange increase delay
- Increase delay as still failing on appveyor
2026-03-26 20:54:11 +10:00
amaitland df4ba2eeb9 Tests - EvaluateScriptAsyncTests.ShouldCancelAfterV8ContextChange add delay
- Add a delay before trying to execute the callback to allow for the message
  to arrive from the render process
2026-03-26 18:52:14 +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
Alex Maitland dc3ec6b382 Core - Basic ArrayBuffer support for EvaluateScriptAsync (#4632) 2024-05-09 11:23:26 +10:00
Alex Maitland ed1763ee95 Add EvaluateScriptAsyncTests.ShouldTimeout test
Follow up to #4654
2023-12-16 11:12:45 +10:00
Alex Maitland 42c150406b Core - EvaluateScriptAsync no longer returns meaningful error messages
Resolves #4629
2023-11-25 06:17:50 +10:00
Alex Maitland fa4a37a8b0 Core - Add EvaluateScriptAsync<T>(string script) extension method
- Add generic overload that uses the DefaultBinder (with CamelCaseNaming)
  to perform type conversion
2023-03-10 18:37:42 +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