worldReadings.module
This package holds more than this page lists. See all of its files in its world.
README.md
Test.worldReadings
Readings the test framework takes of engine-wide state around a test.
quiescenceReading()answers one reading of every facet a queued teardown moves (entities,layers,renderFeatures,renderTargets,loadInFlight), each as a string, soTest.settleWorldTeardowncan compare two frames facet by facet and name the one still moving.liveLayerGuids()answers the guids of the layers loaded right now, sorted.readEditorChrome()answers each editor chrome screen drawn in the window, by name, and whether it is shown;chromeMoved(want, now)answers the screenswantrecords one way thatnowreads the other, sorted by name.
local WorldReadings = require("@builtin::assetTypes.testSuite.shared.worldReadings")
local before = WorldReadings.quiescenceReading()
print(before.entities, before.layers)
print(#WorldReadings.chromeMoved({ toolbar = true }, WorldReadings.readEditorChrome()))