| 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 {} | 9 class JSSyntaxRegExp implements RegExp { |
| 10 class StringBufferImpl {} | 10 JSSyntaxRegExp(String pattern, |
| 11 [bool multiLine = false, |
| 12 bool ignoreCase = false]) { |
| 13 throw 'JSSyntaxRegExp is not implemented'; |
| 14 } |
| 15 } |
| 16 |
| 17 class StringBufferImpl { |
| 18 StringBufferImpl() { |
| 19 throw 'StringBufferImpl is not implemented'; |
| 20 } |
| 21 } |
| 22 |
| 11 class DateImplementation {} | 23 class DateImplementation {} |
| 12 class ReceivePortFactory {} | 24 class ReceivePortFactory {} |
| 13 | 25 |
| 14 class StringBase { | 26 class StringBase { |
| 15 static String createFromCharCodes(List<int> charCodes) { | 27 static String createFromCharCodes(List<int> charCodes) { |
| 16 throw "StringBase.createFromCharCodes is not implemented"; | 28 throw "StringBase.createFromCharCodes is not implemented"; |
| 17 } | 29 } |
| 18 | 30 |
| 19 static String join(List<String> strings, String separator) { | 31 static String join(List<String> strings, String separator) { |
| 20 throw "StringBase.join is not implemented"; | 32 throw "StringBase.join is not implemented"; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 87 } |
| 76 | 88 |
| 77 static num pow(num value, num exponent) { | 89 static num pow(num value, num exponent) { |
| 78 throw 'MathNatives.pow is not implemented'; | 90 throw 'MathNatives.pow is not implemented'; |
| 79 } | 91 } |
| 80 | 92 |
| 81 static double random() { | 93 static double random() { |
| 82 throw 'MathNatives.random is not implemented'; | 94 throw 'MathNatives.random is not implemented'; |
| 83 } | 95 } |
| 84 } | 96 } |
| OLD | NEW |