| 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 // Dart test program for testing that heavy and light isolates can be mixed. | 5 // Dart test program for testing that heavy and light isolates can be mixed. | 
| 6 | 6 | 
| 7 #library('Mixed2Test'); | 7 #library('Mixed2Test'); | 
|  | 8 #import("dart:isolate"); | 
| 8 #import('TestFramework.dart'); | 9 #import('TestFramework.dart'); | 
| 9 | 10 | 
| 10 // We want to send a message from the main-isolate to a chain of different | 11 // We want to send a message from the main-isolate to a chain of different | 
| 11 // isolates and then get a reply back. | 12 // isolates and then get a reply back. | 
| 12 // In the following description heavy2 is not used, because it is shut down | 13 // In the following description heavy2 is not used, because it is shut down | 
| 13 // just after heaving created heavy2.light1,2 and light3. | 14 // just after heaving created heavy2.light1,2 and light3. | 
| 14 // main-> | 15 // main-> | 
| 15 //   heavy1->heavy1.light1->heavy1.light2->heavy1.light3-> | 16 //   heavy1->heavy1.light1->heavy1.light2->heavy1.light3-> | 
| 16 //   heavy2.light1->heavy2.light2->heavy2.light3-> | 17 //   heavy2.light1->heavy2.light2->heavy2.light3-> | 
| 17 //   heavy3->heavy3.pong | 18 //   heavy3->heavy3.pong | 
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 125           })); | 126           })); | 
| 126         })); | 127         })); | 
| 127       })); | 128       })); | 
| 128     })); | 129     })); | 
| 129   })); | 130   })); | 
| 130 } | 131 } | 
| 131 | 132 | 
| 132 main() { | 133 main() { | 
| 133   runTests([test]); | 134   runTests([test]); | 
| 134 } | 135 } | 
| OLD | NEW | 
|---|