mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 09:37:03 +00:00
d06d5100be
* Example - Update to QUnit 2.10
Follows ae41e10d71, which introduced a few references
to QUnit 2.10.
* Example - Simplify the BindObjectAsync unit tests
The `QUnit.test()` may take an async function and/or to return a Promise.
This uses JavaScript's native async/await capabilities to wait for that,
much the same way manual tracking via `assert.async()` would.
Using this can simplify the test structures by a lot.
`assert.rejects()` asserts that a promise throws an error.
`assert.throws()` asserts that a block directly throws an error.
I've also tried to use `assert.deepEqual()`. I suspect a copy
of this function was placed here directly, but I couldn't find
in the history why, so perhaps worth trying if the built-in
one now works.