Enhance postcard puzzles and narration
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:lumen/domain/book.dart';
|
||||
import 'package:lumen/domain/game.dart';
|
||||
import 'package:lumen/main.dart';
|
||||
import 'package:lumen/services/narrator.dart';
|
||||
import 'package:lumen/services/browser_assets.dart';
|
||||
import 'package:lumen/services/progress.dart';
|
||||
|
||||
class _Voice extends Narrator {
|
||||
@@ -35,6 +36,18 @@ class _Voice extends Narrator {
|
||||
}
|
||||
|
||||
void main() {
|
||||
test('web audio URLs distinguish updated recording content', () {
|
||||
final first = Uri.parse(
|
||||
browserAudioUrl('assets/audio/voice.wav', version: 'old-hash'),
|
||||
);
|
||||
final second = Uri.parse(
|
||||
browserAudioUrl('assets/audio/voice.wav', version: 'new-hash'),
|
||||
);
|
||||
expect(first.queryParameters['v'], 'old-hash');
|
||||
expect(second.queryParameters['v'], 'new-hash');
|
||||
expect(first.path, second.path);
|
||||
expect(first, isNot(second));
|
||||
});
|
||||
testWidgets('autoplay waits exactly three seconds and starts only once', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
Reference in New Issue
Block a user