feedback3 WD: a fresh model load also forgets PIXI's pending requests keyed by the absolute URL of the same path (GitHub #68)
This commit is contained in:
1 parent
207a49103f
commit
28a00e0f33
2 files changed
+6
-2
No files matched your search
@@ -77,6 +77,9 @@ test('forgetPendingSpine: PIXI\'s pending requests of an unfinished skeleton go,
|
||||
c = setup([]);
|
||||
forgetPendingSpine(e, new Set([page]));
|
||||
assert.ok(c[page], 'a page another cached skeleton uses stays');
|
||||
c = setup([]);
|
||||
c[`http://127.0.0.1:8080${e.atlas}`] = {};
|
||||
assert.equal(forgetPendingSpine(e), 4, 'an absolute key of the same path too');
|
||||
globalThis.PIXI = {};
|
||||
assert.equal(forgetPendingSpine(e), 0, 'no loader cache: nothing');
|
||||
} finally { globalThis.PIXI = prev; }
|
||||
|
||||
Reference in new issue
Block a user