Series of manually performed test cases for scenarios that are difficult / not feasible to test in an automated fashion.
- Open the kitchen sink example.
- Ensure
loadSiblings
is enabled. - Ensure
displayActiveTiles
is enabled. - Zoom in as much as possible so much of the tileset is not visible.
- Wait until all tiles have loaded.
- Disable the
enableUpdate
option. - Zoom out to view the whole tileset.
Tiles are displayed all the way out to the edge of the tileset.
- Open the kitchen sink example.
- Ensure
loadSiblings
is disabled. - Ensure
displayActiveTiles
is enabled. - Zoom in as much as possible so much of the tileset is not visible.
- Wait until all tiles have loaded.
- Disable the
enableUpdate
option. - Zoom out to view the whole tileset.
Only tiles that were visible when zoomed in are displayed.
- Open the kitchen sink example.
- Ensure
loadSiblings
is enabled. - Ensure
displayActiveTiles
is enabled. - Zoom in as much as possible so much of the tileset is not visible.
- Wait until all tiles have loaded.
- Disable the
enableUpdate
option. - Zoom out to view the whole tileset.
Tiles are displayed all the way out to the edge of the tileset but they are not when displayActiveTiles
is false.
- Open the kitchen sink example.
- Open the Javascript console.
- Ensure
errorTarget
is set to6
. - Enable
SCREEN_ERROR
color mode. - Zoom to various levels.
- Click on tiles to view current screen space error in the console.
No tiles are above the 6.0 error target threshold.
- Open the kitchen sink example.
- Set error target to 2.
- Set error threshold to 6.
- Open the javascript console.
- Hit "reload".
- Inspect the tileset using the following script:
tiles.traverse( tile => {
let str = new Array( tile.__depth + 1 ).join( ' ' );
str += tile.__error.toFixed( 2 );
str += ' : ';
str += tile.__loadingState;
console.log( str )
return tile.__isLeaf;
} );
Verify that no parent tiles have loaded ( __loadingState
should equal 0
) if they have a threshold above 18 ( ( target + 1 ) * threshold
).
- Open the kitchen sink example.
- Open the Javascript console.
- Ensure
maxDepth
is set to2
. - Enable
DEPTH
color mode. - Click on tiles to view current depth in the console.
No tiles are above or equal to the 2 max depth value.
- Open the kitchen sink example.
- Zoom all the way in.
- Disable the
enableUpdate
option. - Zoom out.
Verify tiles no longer update with the camera view.
- Open the kitchen sink example.
- Enable the third person camera view.
- Zoom in the main view so part of the tileset is cut off.
Verify only tiles in view of the frustum are displayed in the third person camera view.
- Open the kitchen sink example.
- Enable the third person camera view.
- Enable the second camera view.
- Enable
GEOMETRIC_ERROR
color mode. - Zoom in the both cameras on opposite sides of the terrain so part of the tileset is cut off.
Verify only tiles in view of both cameras frustums are displayed in the third person camera view and that tiles nearest the cameras have the lowest geometric error.
- Open the kitchen sink example.
- Enable raycasting.
- Hover over the surface of the terrain.
- Repeat with firstHitOnly = false.
Verify the hit marker is on the point under the mouse and that the normal lines up with the surface.
- Open the kitchen sink example.
- Enable raycasting.
- Set max depth option to 1.
- Hover over the surface of the terrain.
- Repeat with firstHitOnly = false.
Verify the hit marker is on the point under the mouse and that the normal lines up with the surface.
- Open the kitchen sink example.
- Enable display box bounds option.
- Move the camera around and zoom in and out.
Verify the boxes change with the level of detail of the terrain.
- Open the kitchen sink example.
- Set the error target to 2.
- Set the error threshold to 6.
- Zoom in all the way.
- Click rebuild.
- Wait for all tiles to load.
- Set the error threshold to 1000 (or zoom out).
Verify the display does not change and the tiles to not disappear while parent tiles load.
- Open the kitchen sink example.
- Set the location hash to
#./non/existing/tileset.json
to load a different tileset.
Verify that an error is logged stating that the tileset could not be found just once.
- Open the kitchen sink example with a midtile with broken content by navigating here.
- Set the error threshold as high as it goes.
- Click rebuild.
Verify an error is logged stating that the root tile content could not be loaded, that the stats state that is 1 tile that failed, that "downloads" and "parsing" eventually settle to 0, and that child tiles continue to render.
- Open the kitchen sink example with the no root content tileset by navigating here.
- Set the error threshold as high as it goes.
- Click rebuild.
Verify that the tileset still renders correctly.
- Open the kitchen sink example with a remote tileset by navigating here.
Verify the tileset loads correctly and tehre are no errors in the console.
- Open the kitchen sink example with the no root content tileset by navigating here.
- Slowly move the tileset offscreen by right clicking and dragging the view.
Verify no errors are logged.
- Open the custom materials example.
- Wait for the tileset to load completely.
- Verify that the stats display 125 geometries, 126 textures, and 1 programs.
- Switch to "GRADIENT" display.
- Click "rebuild".
- Wait for the tileset to completely load.
- Switch to "DEFAULT" display.
- Click "rebuild".
Verify that the stats display 125 geometries, 126 textures, and 1 programs.
- Open the kitchen sink example by navigating here.
- Set
maxDepth
to 1. - Verify that only 1 tile is visible.
- Open the kitchen sink example with the no root content tileset by navigating here.
- Set
maxDepth
to 1. - Verify that all tiles disappear.
No tiles are visible when the active leafs have no content.
- Open the kitchen sink example by navigating here.
- Set
maxDepth
to 1. - Verify that only 1 tile is visible.
- Open the kitchen sink example with the no root content tileset by navigating here.
- Disable
stopAtEmptyTiles
. - Set
maxDepth
to 1. - Verify that 4 tiles are visible.
The next shallowest tiles are visible past the maxDepth
cutoff.
- Open the kitchen sink example with the no root content tileset by navigating here.
- Zoom in slowly and verify the tiles load correctly and completely.
- Set
errorTarget
to 0. - Set
maxDepth
to 3. - Set
colorMode
toRANDOM_COLOR
. - Verify that one tile is missing.
- Disable
stopAtEmptyTiles
. - Verify that there are four smaller tiles compared to the rest of the tileset where the missing midtile with content is.
The tileset renders and loads correctly.
- Open the kitchen sink example with the no root content tileset by navigating here.
- Set
colorMode
toRANDOM_COLOR
.
Verify that all tiles render on top of each other including the root and that setting the error target and threshold to 0 does not change this. Ensure that raising the error target to the max value will cause deeper tiles to disappear.
- Load
tileset-external.json
in the kitchen sink example. - Zoom in and out.
- Set target error to
0
.
Verify the tileset loads correctly and there are no missing chunks or errors in the console.
- Load
tileset-external-broken.json
in the kitchen sink example. - Zoom in and out.
- Set target error to
0
.
Verify that the external tileset does not load but the rest of the tileset continues to work as expected with a gap.
- Load
tileset-external.json
in the kitchen sink example. - Zoom in and out.
- Set target error to
0
. - Ensure external tileset has loaded by running
tiles.root.children[0].children[0].children
in the console and verifying it's not empty. - Set the max depth to
0
, and set min and max cache size to1
before resetting them to force everything to unload. Check the cache display to ensure it's unloaded. - Ensure external tileset is unloaded by
tiles.root.children[0].children[0].children
in the console and verifying it's empty. - Raise the max depth again and verify that the external tileset loads once again.
Verify all steps happen as written.