Download this file
| 1 | // fixtures/font-system-session.mjs — font-session.mjs's other half: the |
| 2 | // session for a page whose web faces are not on. Kept apart so that |
| 3 | // file stays the rule itself; font-session.mjs re-exports it. |
| 4 | |
| 5 | /** |
| 6 | * The session for a page whose web faces are not on (no hold, or the |
| 7 | * hold's fail-safe showed the page first): every slide is in its system |
| 8 | * faces for the visit, so there is nothing to load and nothing to wait |
| 9 | * for. |
| 10 | */ |
| 11 | export function createSystemSession () { |
| 12 | return { |
| 13 | web: false, |
| 14 | manifest: null, |
| 15 | ready: () => true, |
| 16 | loaded: () => false, |
| 17 | committed: () => false, |
| 18 | failed: () => false, |
| 19 | state: () => 'system', |
| 20 | inUse: [], |
| 21 | fallback: [], |
| 22 | use () {}, |
| 23 | keys: [], |
| 24 | uploaded: {}, |
| 25 | learn () {}, |
| 26 | learnUploaded () {}, |
| 27 | load: async () => false, |
| 28 | markShown () {}, |
| 29 | shown: true, |
| 30 | gate: async () => [], |
| 31 | waitFor: async () => true, |
| 32 | prepare: async () => {}, |
| 33 | commitFallback () {}, |
| 34 | prefetch: async () => {} |
| 35 | } |
| 36 | } |
| 37 | |