Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <script> | |
| 2 import "../resources/third_party/unittest/unittest.dart"; | 1 import "../resources/third_party/unittest/unittest.dart"; |
| 3 import "../resources/unit.dart"; | 2 import "../resources/unit.dart"; |
| 4 import "dart:sky"; | 3 import "dart:sky"; |
| 5 import 'dart:async'; | 4 import 'dart:async'; |
| 6 | 5 |
| 7 void send20IntegersToDispatcherController(DispatcherController d) { | 6 void send20IntegersToDispatcherController(DispatcherController d) { |
| 8 for (var index = 0; index < 20; index += 1) | 7 for (var index = 0; index < 20; index += 1) |
| 9 d.add(index); | 8 d.add(index); |
| 10 } | 9 } |
| 11 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 if (Zone.current == zoneB) | 92 if (Zone.current == zoneB) |
| 94 result.add(v + 0.2); | 93 result.add(v + 0.2); |
| 95 }); | 94 }); |
| 96 }); | 95 }); |
| 97 send20IntegersToDispatcherController(d); | 96 send20IntegersToDispatcherController(d); |
| 98 expect(result, orderedEquals([0.1,0.2,1.1,1.2,2.1,2.2,3.1,3.2,4.1,4.2,5.1, 5.2,6.1,6.2,7.1,7.2,8.1,8.2,9.1,9.2,10.1,11.1,12.1,13.1,14.1,15.1,16.1,17.1,18.1 ])); | 97 expect(result, orderedEquals([0.1,0.2,1.1,1.2,2.1,2.2,3.1,3.2,4.1,4.2,5.1, 5.2,6.1,6.2,7.1,7.2,8.1,8.2,9.1,9.2,10.1,11.1,12.1,13.1,14.1,15.1,16.1,17.1,18.1 ])); |
| 99 }); | 98 }); |
| 100 | 99 |
| 101 }); | 100 }); |
| 102 } | 101 } |
| 103 </script> | |
| OLD | NEW |