| Index: samples-dev/swarm/test/swarm_test.dart
|
| diff --git a/samples-dev/swarm/test/swarm_test.dart b/samples-dev/swarm/test/swarm_test.dart
|
| index a3f9c03c04cc15cc2ece0cb0753960e70c60541d..c7f39f9ef46fa949c7082a2a4b7e9ed2c7bff056 100644
|
| --- a/samples-dev/swarm/test/swarm_test.dart
|
| +++ b/samples-dev/swarm/test/swarm_test.dart
|
| @@ -33,15 +33,16 @@ void main() {
|
| getStoryNode() => swarm.frontView.storyView.node;
|
|
|
| getView(Section section) {
|
| - return CollectionUtils.find(swarm.frontView.sections.childViews,
|
| - (view) => view.section == section);
|
| + return CollectionUtils.find(
|
| + swarm.frontView.sections.childViews, (view) => view.section == section);
|
| }
|
|
|
| getHistory(Article article) {
|
| final feed = article.dataSource;
|
| return {
|
| - 'section': CollectionUtils.find(swarm.sections,
|
| - (s) => s.feeds.indexOf(feed, 0) >= 0).id,
|
| + 'section': CollectionUtils
|
| + .find(swarm.sections, (s) => s.feeds.indexOf(feed, 0) >= 0)
|
| + .id,
|
| 'feed': feed.id,
|
| 'article': article.id
|
| };
|
| @@ -113,7 +114,6 @@ click(Element element) {
|
| element.dispatchEvent(event);
|
| }
|
|
|
| -
|
| /** A proxy so we can intercept history calls */
|
| class UIStateProxy extends SwarmState {
|
| List<Map<String, String>> history;
|
| @@ -153,6 +153,7 @@ void _serialInvokeAsync(List closures) {
|
| Timer.run(expectAsync(invokeNext));
|
| }
|
| }
|
| +
|
| Timer.run(expectAsync(invokeNext));
|
| }
|
| }
|
|
|