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

Unified Diff: pkg/docgen/test/constant_argument_test.dart

Issue 574683002: Use ConstExp for storing constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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
« no previous file with comments | « pkg/docgen/lib/src/models/model_helpers.dart ('k') | pkg/docgen/test/multi_library_code/lib/test_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/test/constant_argument_test.dart
diff --git a/pkg/docgen/test/constant_argument_test.dart b/pkg/docgen/test/constant_argument_test.dart
index 6380fdd2df589e2f436d92171cf035e5b08008da..bf5a84a34ff6e9e79b629b8c4c32cfac87b80689 100644
--- a/pkg/docgen/test/constant_argument_test.dart
+++ b/pkg/docgen/test/constant_argument_test.dart
@@ -58,10 +58,13 @@ void main() {
final _PARAM_VALUES = {
"intConst": "42",
"boolConst": "true",
- "listConst": '[true, 42, "Shanna", null, 3.14, []]',
+ "listConst": 'const [true, 42, "Shanna", null, 3.14, const []]',
"stringConst": "\"Shanna\"",
- "mapConst": startsWith("Map"),
- "emptyMap": '{}'
+ "mapConst": 'const {"a": 1, 2: true, "c": const [1, null, true]}',
+ "emptyMap": 'const {}',
+ "referencedConst": "INT_CONST",
+ "constructedConstant1": "const ConstClass<int>(0, true)",
+ "constructedConstant2": 'const ConstClass(1, false, str: "str")'
};
const _PARAM_NAME_ORDER = const [
@@ -70,5 +73,8 @@ const _PARAM_NAME_ORDER = const [
"listConst",
"stringConst",
"mapConst",
- "emptyMap"
+ "emptyMap",
+ "referencedConst",
+ "constructedConstant1",
+ "constructedConstant2"
];
« no previous file with comments | « pkg/docgen/lib/src/models/model_helpers.dart ('k') | pkg/docgen/test/multi_library_code/lib/test_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698