-
Notifications
You must be signed in to change notification settings - Fork 67
Description
So, in #331 a variety of interfaces were exposed within ShadowRealms. However, based on my spelunking through the web-platform tests, what has been tested thus far is simply the shadow realm IDL Harness tests, which merely tests that the interfaces are of the correct shape, not that they work sensibly (for whatever value of sensibly is desired).
I'm wondering how these things will be tested properly? For example, I discovered very quickly a crash from new ShadowReam().evaluate('new PerformanceMark("hey").startTime') [1], but there's no WPT that actually checks things like does the startTime actually get set properly; do two sequential marks (separated by a sufficient temporal distance) have distinct start times etc.
My understanding of the state of ShadowRealms is that we don't want to ship it until we have the HTML integration done; both making sure the actual spec integration is correct and the exposure of interfaces is correct; but I don't think I want to push much further on the exposure work without making sure the testing makes sense; I had actually started my work under a misunderstanding of how the SR testing works already.
[1]: Note: the performance features had their IDL exposure changes reverted due to a lack of implementation; I implemented to explore the challenges.
[2]: Side note: Exposing PerformanceMark feels weird without the ability to actually hook it up to the performance timeline, which currently AIUI is impossible in a shadow realm.