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

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

Issue 1013223002: coverage: increase coverage of js_codegen (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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..6dc6957274799305808e1363cb7e75bec6fd6378
--- /dev/null
+++ b/test/codegen/expect/map_keys.js
@@ -0,0 +1,16 @@
+var map_keys;
+(function(exports) {
+ 'use strict';
+ // Function main: () → dynamic
+ function main() {
+ 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.notNull(new math.Random().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]));
+ }
+ // Exports:
+ exports.main = main;
+})(map_keys || (map_keys = {}));
+//# sourceMappingURL=map_keys.js.map

Powered by Google App Engine
This is Rietveld 408576698