Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Side by Side Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 431713002: Get rid of unnecessary calls to toDouble(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698