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

Unified Diff: test/codegen/expect/map_keys.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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
Index: test/codegen/expect/map_keys.js
diff --git a/test/codegen/expect/map_keys.js b/test/codegen/expect/map_keys.js
new file mode 100644
index 0000000000000000000000000000000000000000..2ccf7c911c4257f7623f2d2711f2b54a0dda5181
--- /dev/null
+++ b/test/codegen/expect/map_keys.js
@@ -0,0 +1,24 @@
+dart_library.library('map_keys', null, /* Imports */[
+ 'dart_sdk'
+], function load__map_keys(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const math = dart_sdk.math;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const map_keys = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ map_keys.main = function() {
+ core.print(dart.map({'1': 2, '3': 4, '5': 6}));
+ core.print(dart.map([1, 2, 3, 4, 5, 6]));
+ core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().nextInt(2)) + 2}`]: 4, '5': 6}));
+ let x = '3';
+ core.print(dart.map(['1', 2, x, 4, '5', 6]));
+ core.print(dart.map(['1', 2, null, 4, '5', 6]));
+ };
+ dart.fn(map_keys.main, VoidTodynamic());
+ // Exports:
+ exports.map_keys = map_keys;
+});
+
+//# sourceMappingURL=map_keys.js.map
« no previous file with comments | « test/codegen/expect/lib/typed_data/typed_list_iterable_test.js ('k') | test/codegen/expect/matcher/matcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698