mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Run the conformance logic suite on the Cesium renderer
The conformance page can now run the logic checks against the Cesium
scene renderer as well as the stub. CESIUM_CHECKS lists the checks of
the ports Cesium already has; each phase 2 migration adds its own, so
the suite shows how far the renderer is through the contract. All eight
listed checks pass in the browser, and the stub still passes its 69.
A harness frame is one tick of the render loop, observed through
frame.on('preUpdate'). It asks for no frame itself, so a check's own
requestRender is what makes a tick draw, and a loop that stops fails
the check after five seconds instead of hanging the run. The harness
frees each WebGL context on destroy.
FrameTime.dt is now measured rather than fixed at 1/60, and renderOnce
honours timeoutMs. A scene renderer made without the models capability
has no draw.models.
This commit is contained in:
1 parent
6a8afe3009
commit
22ce0925a2
6 files changed
+170
-16
No files matched your search
@@ -145,6 +145,15 @@ test('work pending at destroy settles and lets go of the scene', async (t) => {
|
||||
assert.equal(viewers[0].listeners.size, 0, 'no one-shot render stays');
|
||||
await renderer.frame.renderOnce();
|
||||
|
||||
const waiting = await plugin.create({ container: {} });
|
||||
await assert.rejects(
|
||||
waiting.frame.renderOnce({ timeoutMs: 5 }),
|
||||
/timed out/,
|
||||
'a frame that never comes times out when asked to',
|
||||
);
|
||||
assert.equal(viewers[1].listeners.size, 4, 'and lets go of its listener');
|
||||
waiting.destroy();
|
||||
|
||||
// A model that finishes loading after destroy is destroyed, not added.
|
||||
const load = Promise.withResolvers();
|
||||
const saved = Cesium.Model.fromGltfAsync;
|
||||
|
||||
Reference in new issue
Block a user