refactor(desktop): reorganize workspace panels and navigation
This commit is contained in:
1 parent
826745b407
commit
1f73765745
92 files changed
+5811
-2650
No files matched your search
@@ -33,10 +33,14 @@ void main() {
|
||||
timelines.single.id,
|
||||
);
|
||||
final session = await workspace.openTimelineSession(firstId, document);
|
||||
final thumbnails = session.thumbnails;
|
||||
final waveforms = session.waveforms;
|
||||
await workspace.open('${root.path}/Two.cutdex', name: 'Two');
|
||||
await workspace.open('${root.path}/One.cutdex', expectedId: firstId);
|
||||
final restored = await workspace.openTimelineSession(firstId, document);
|
||||
expect(restored, same(session));
|
||||
expect(restored.thumbnails, same(thumbnails));
|
||||
expect(restored.waveforms, same(waveforms));
|
||||
expect(restored.acceptsEdits, isTrue);
|
||||
await workspace.open('${root.path}/Two.cutdex');
|
||||
await workspace.open('${root.path}/Three.cutdex', name: 'Three');
|
||||
@@ -44,6 +48,8 @@ void main() {
|
||||
expect(workspace.cachedProjectIds.length, 3);
|
||||
expect(workspace.cachedProjectIds, isNot(contains(firstId)));
|
||||
expect(session.acceptsEdits, isFalse);
|
||||
expect(() => thumbnails.addListener(() {}), throwsFlutterError);
|
||||
expect(() => waveforms.addListener(() {}), throwsFlutterError);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user