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

Unified Diff: lib/src/dart_sdk.dart

Issue 1252773002: add test related to #264 and #228 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/checker/checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dart_sdk.dart
diff --git a/lib/src/dart_sdk.dart b/lib/src/dart_sdk.dart
index 6818f952ae46da60cc4afc3c4cf12e156bf9dc50..94099e71b4bbb83166a85e63a7e0ffe7a101a6cd 100644
--- a/lib/src/dart_sdk.dart
+++ b/lib/src/dart_sdk.dart
@@ -156,6 +156,8 @@ final Map<String, String> mockSdkSources = {
''',
'dart:async': '''
class Future<T> {
+ Future(computation()) {}
+ Future.value(T t) {}
Future then(callback) {}
}
class Stream<T> {}
@@ -164,4 +166,10 @@ final Map<String, String> mockSdkSources = {
library dart.html;
class HtmlElement {}
''',
+ 'dart:math': '''
+ library dart.math;
+ class Random {
+ bool nextBool() {}
+ }
+ ''',
};
« no previous file with comments | « no previous file | test/checker/checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698