forked from Foxyz/sync_replay_project
Pills only with the controls, web links in their final layout at once, chat pop-ups when paused by default
- Next episode (known ending, else the last two minutes) and Skip ED show only while the controls are up, like Skip 1:30 (PillGate). - A web link's name and wide cover slot show from the first state, so nothing flips when its thumbnail arrives. - Chat pop-ups default to Only when paused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
27b4ec2c96
commit
2a7b553597
14 files changed
+149
-78
No files matched your search
@@ -154,14 +154,14 @@ void main() {
|
||||
});
|
||||
|
||||
group('next episode prompt', () {
|
||||
test('at the ED start when known, else none (never a guessed time)', () {
|
||||
test('at the ED start when known, else the last two minutes', () {
|
||||
expect(nextPromptStart(null, m(24), endingStart: m(20)), m(20));
|
||||
expect(nextPromptStart(null, m(24)), isNull);
|
||||
expect(nextPromptStart(null, m(24), endingStart: null), isNull);
|
||||
// Nonsense ending starts count as unknown.
|
||||
expect(nextPromptStart(null, m(24), endingStart: m(25)), isNull);
|
||||
expect(nextPromptStart(null, m(24), endingStart: Duration.zero), isNull);
|
||||
expect(nextPromptStart(null, s(90)), isNull);
|
||||
expect(nextPromptStart(null, m(24)), m(22));
|
||||
expect(nextPromptStart(null, m(24), endingStart: null), m(22));
|
||||
// Nonsense ending starts fall back.
|
||||
expect(nextPromptStart(null, m(24), endingStart: m(25)), m(22));
|
||||
expect(nextPromptStart(null, m(24), endingStart: Duration.zero), m(22));
|
||||
expect(nextPromptStart(null, s(90)), Duration.zero);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user