| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Mocks of classes and interfaces that Leg cannot read directly. | 5 // Mocks of classes and interfaces that Leg cannot read directly. |
| 6 | 6 |
| 7 // TODO(ahe): Remove this file. | 7 // TODO(ahe): Remove this file. |
| 8 | 8 |
| 9 class JSSyntaxRegExp implements RegExp { | 9 class JSSyntaxRegExp implements RegExp { |
| 10 JSSyntaxRegExp(String pattern, | 10 JSSyntaxRegExp(String pattern, |
| 11 [bool multiLine = false, | 11 [bool multiLine = false, |
| 12 bool ignoreCase = false]) { | 12 bool ignoreCase = false]) { |
| 13 throw 'JSSyntaxRegExp is not implemented'; | 13 throw 'JSSyntaxRegExp is not implemented'; |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 class StringBufferImpl { | |
| 18 StringBufferImpl([content]) { | |
| 19 throw 'StringBufferImpl is not implemented'; | |
| 20 } | |
| 21 } | |
| 22 | |
| 23 class ReceivePortFactory { | 17 class ReceivePortFactory { |
| 24 factory ReceivePort() { | 18 factory ReceivePort() { |
| 25 throw 'factory ReceivePort is not implemented'; | 19 throw 'factory ReceivePort is not implemented'; |
| 26 } | 20 } |
| 27 | 21 |
| 28 factory ReceivePort.singleShot() { | 22 factory ReceivePort.singleShot() { |
| 29 throw 'factory ReceivePort.singleShot is not implemented'; | 23 throw 'factory ReceivePort.singleShot is not implemented'; |
| 30 } | 24 } |
| 31 } | 25 } |
| 32 | 26 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 266 } |
| 273 String twoDigitMinutes = | 267 String twoDigitMinutes = |
| 274 twoDigits(inMinutes.remainder(Duration.MINUTES_PER_HOUR)); | 268 twoDigits(inMinutes.remainder(Duration.MINUTES_PER_HOUR)); |
| 275 String twoDigitSeconds = | 269 String twoDigitSeconds = |
| 276 twoDigits(inSeconds.remainder(Duration.SECONDS_PER_MINUTE)); | 270 twoDigits(inSeconds.remainder(Duration.SECONDS_PER_MINUTE)); |
| 277 String threeDigitMs = | 271 String threeDigitMs = |
| 278 threeDigits(inMilliseconds.remainder(Duration.MILLISECONDS_PER_SECOND)); | 272 threeDigits(inMilliseconds.remainder(Duration.MILLISECONDS_PER_SECOND)); |
| 279 return "${inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${threeDigitMs}"; | 273 return "${inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${threeDigitMs}"; |
| 280 } | 274 } |
| 281 } | 275 } |
| OLD | NEW |