Bound recording loading, terminal allocation, markers and upload JSON complexity

This commit is contained in:
2026-10-15 10:13:55 +08:00
parent ffff9704e5
commit 92de7f86f4
24 changed files with 1831 additions and 115 deletions
+4 -2
View File
@@ -34,13 +34,15 @@ for (const readyState of ['loading', 'complete']) {
assert.equal(event, 'DOMContentLoaded');
onReady = callback;
},
defaultView: { AsciinemaPlayer: { create(source, target) {
assert.equal(source, '/recording.cast');
defaultView: { AbortController, fetch() { throw new Error('Lazy playback must not fetch during boot.'); }, MutationObserver: class { observe() {} disconnect() {} }, AsciinemaPlayer: { create(source, target) {
assert.equal(typeof source.data, 'function');
assert.equal(target, container);
mounts++;
return { addEventListener() {} };
} } },
};
container.ownerDocument = document;
container.isConnected = true;
runInNewContext(view, { document, window: { wp: { i18n: { __: (text) => text } } }, URL });
if (readyState === 'loading') {
assert.equal(mounts, 0);