| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library swarm_tests; | 5 library swarm_tests; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | |
| 8 import 'dart:html'; | 7 import 'dart:html'; |
| 9 import 'dart:async'; | 8 import 'dart:async'; |
| 10 import '../../../swarm/swarmlib.dart'; | 9 import 'package:expect/expect.dart'; |
| 11 import '../../../swarm/swarm_ui_lib/base/base.dart'; | 10 import 'package:unittest/html_config.dart'; |
| 12 import '../../../swarm/swarm_ui_lib/view/view.dart'; | 11 import 'package:unittest/unittest.dart'; |
| 13 import '../../../swarm/swarm_ui_lib/util/utilslib.dart'; | 12 import '../swarmlib.dart'; |
| 14 import '../../../../pkg/unittest/lib/unittest.dart'; | 13 import '../swarm_ui_lib/base/base.dart'; |
| 15 import '../../../../pkg/unittest/lib/html_config.dart'; | 14 import '../swarm_ui_lib/view/view.dart'; |
| 15 import '../swarm_ui_lib/util/utilslib.dart'; |
| 16 | 16 |
| 17 // TODO(jmesserly): these would probably be easier to debug if they were written | 17 // TODO(jmesserly): these would probably be easier to debug if they were written |
| 18 // in the WebKit layout test style, so we could easy compare that the DOM is | 18 // in the WebKit layout test style, so we could easy compare that the DOM is |
| 19 // what we expect it to be after performing some simulated user actions. | 19 // what we expect it to be after performing some simulated user actions. |
| 20 | 20 |
| 21 void main() { | 21 void main() { |
| 22 useHtmlConfiguration(); | 22 useHtmlConfiguration(); |
| 23 Swarm swarm = new Swarm(useCannedData: true); | 23 Swarm swarm = new Swarm(useCannedData: true); |
| 24 UIStateProxy state = new UIStateProxy(swarm.sections); | 24 UIStateProxy state = new UIStateProxy(swarm.sections); |
| 25 swarm.state = state; | 25 swarm.state = state; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 void invokeNext() { | 150 void invokeNext() { |
| 151 closures[i](); | 151 closures[i](); |
| 152 i++; | 152 i++; |
| 153 if (i < length) { | 153 if (i < length) { |
| 154 Timer.run(expectAsync0(invokeNext)); | 154 Timer.run(expectAsync0(invokeNext)); |
| 155 } | 155 } |
| 156 } | 156 } |
| 157 Timer.run(expectAsync0(invokeNext)); | 157 Timer.run(expectAsync0(invokeNext)); |
| 158 } | 158 } |
| 159 } | 159 } |
| OLD | NEW |