mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 10:12:18 +00:00
Timed imagery reads the drawn globe tiles through internals.js
The tiles the globe last drew are a private Cesium field: read through globeTilesDrawn, whose field the internals test checks the installed Cesium still declares.
This commit is contained in:
1 parent
ee9de4edda
commit
a043854f27
3 files changed
+21
-1
No files matched your search
@@ -13,6 +13,7 @@ import {
|
||||
commandExtents,
|
||||
creditDisplayContents,
|
||||
defaultView,
|
||||
globeTilesDrawn,
|
||||
lastRenderTime,
|
||||
lastSeenCamera,
|
||||
materialTexture,
|
||||
@@ -59,6 +60,7 @@ test('every private field the app reaches is still declared by the installed Ces
|
||||
[ENGINE, 'Scene/View.js', '_cameraClone'],
|
||||
[ENGINE, 'Scene/Scene.js', '_frameState'],
|
||||
[ENGINE, 'Scene/Globe.js', '_surface'],
|
||||
[ENGINE, 'Scene/QuadtreePrimitive.js', '_tilesToRender'],
|
||||
[ENGINE, 'Scene/QuadtreePrimitive.js', '_tileReplacementQueue'],
|
||||
[ENGINE, 'Scene/CreditDisplay.js', '_staticCredits'],
|
||||
[ENGINE, 'Scene/CreditDisplay.js', '_currentFrameCredits'],
|
||||
@@ -283,3 +285,9 @@ test('trimGlobeTiles empties the globe cache of what the frame did not draw', ()
|
||||
trimGlobeTiles(undefined);
|
||||
assert.deepEqual(trims, [0]);
|
||||
});
|
||||
|
||||
test('globeTilesDrawn reads the tiles the globe last drew', () => {
|
||||
const tiles = [{}];
|
||||
assert.equal(globeTilesDrawn({ _surface: { _tilesToRender: tiles } }), tiles);
|
||||
assert.deepEqual(globeTilesDrawn(undefined), []);
|
||||
});
|
||||
Reference in new issue
Block a user