- Timestamp:
- 07/29/2026 12:12:38 PM (6 weeks ago)
- Branches:
- main
- Children:
- d56d471
- Parents:
- 08ab8ad
- File:
-
- 1 edited
-
test/gated-settings.test.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test/gated-settings.test.js
r08ab8ad r6100ce9 162 162 assert.ok(shut && shut.url, 'the card itself still travels'); 163 163 assert.equal(shut['shaer:playerUrl'], undefined, 'no player without the gate'); 164 // But the card says there IS something behind the gate, so the app can 165 // explain the silence instead of ignoring a tap. Robin tapped a video that 166 // could not answer and nothing happened, which reads as broken, not as shut. 167 assert.equal(shut['shaer:playable'], true, 'a shut gate still admits that a player exists'); 164 168 165 169 const open = AP2.timelineEmbed(yt, { playback: true }); … … 173 177 const page = JSON.stringify({ url: 'https://yougubrands.com/about', title: 'About', media: [] }); 174 178 assert.equal(AP2.timelineEmbed(page, { playback: true })['shaer:playerUrl'], undefined); 179 // And no promise of one either: a news article is not a shut gate, it is 180 // simply not a video, and the app must not offer to ask for it. 181 assert.equal(AP2.timelineEmbed(page)['shaer:playable'], undefined); 175 182 assert.equal(AP2.playerUrlFor('https://nos.nl/artikel/1'), null); 176 183 // PeerTube is decentralised, so it is matched by shape, not by a host list.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)