| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 test.integration.analysis; | 5 library test.integration.analysis; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:convert'; | 9 import 'dart:convert'; |
| 10 import 'dart:io'; | 10 import 'dart:io'; |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 new Future.delayed(new Duration(seconds: 1), expectAsync(() { | 708 new Future.delayed(new Duration(seconds: 1), expectAsync(() { |
| 709 fail('Bad data received from server'); | 709 fail('Bad data received from server'); |
| 710 })); | 710 })); |
| 711 } | 711 } |
| 712 | 712 |
| 713 /** | 713 /** |
| 714 * Record a message that was exchanged with the server, and print it out if | 714 * Record a message that was exchanged with the server, and print it out if |
| 715 * [debugStdio] has been called. | 715 * [debugStdio] has been called. |
| 716 */ | 716 */ |
| 717 void _recordStdio(String line) { | 717 void _recordStdio(String line) { |
| 718 double elapsedTime = _time.elapsedTicks.toDouble() / | 718 double elapsedTime = _time.elapsedTicks / _time.frequency; |
| 719 _time.frequency.toDouble(); | |
| 720 line = "$elapsedTime: $line"; | 719 line = "$elapsedTime: $line"; |
| 721 if (_debuggingStdio) { | 720 if (_debuggingStdio) { |
| 722 print(line); | 721 print(line); |
| 723 } | 722 } |
| 724 _recordedStdio.add(line); | 723 _recordedStdio.add(line); |
| 725 } | 724 } |
| 726 } | 725 } |
| OLD | NEW |