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

Unified Diff: tests/compiler/dart2js/mock_libraries.dart

Issue 1325843003: Add optional message to assert in Dart2js. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Reintroduce assertHelper for asserts without messages. Created 5 years, 3 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
Index: tests/compiler/dart2js/mock_libraries.dart
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart
index 137245849102c86a0b01edc0a3d5f536e75bcab5..25ca4645eacb0f60cae2a5fd23be842710b7097a 100644
--- a/tests/compiler/dart2js/mock_libraries.dart
+++ b/tests/compiler/dart2js/mock_libraries.dart
@@ -100,6 +100,8 @@ import 'dart:async';
''';
const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{
+ 'assertTest': 'assertTest(a) {}',
+ 'assertThrow': 'assertThrow(a) {}',
'assertHelper': 'assertHelper(a) {}',
'assertIsSubtype': 'assertIsSubtype(subtype, supertype, message) {}',
'assertSubtype': 'assertSubtype(object, isField, checks, asField) {}',
@@ -384,7 +386,7 @@ const Map<String, String> DEFAULT_ISOLATE_HELPER_LIBRARY =
const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{
'DeferredLibrary': 'class DeferredLibrary {}',
- 'Future':
+ 'Future':
'''
class Future<T> {
Future.value([value]);

Powered by Google App Engine
This is Rietveld 408576698