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

Side by Side Diff: test/codegen/expect/language/compile_time_constant_o_test_none_multi.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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/compile_time_constant_o_test_none_multi', null, / * Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__compile_time_constant_o_test_none_multi(exports, dart_sdk, exp ect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const compile_time_constant_o_test_none_multi = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 compile_time_constant_o_test_none_multi.str = "foo";
13 compile_time_constant_o_test_none_multi.m1 = dart.const(dart.map({foo: 499}));
14 compile_time_constant_o_test_none_multi.m2 = dart.const(dart.map({[dart.str`${ compile_time_constant_o_test_none_multi.str}`]: 499}));
15 compile_time_constant_o_test_none_multi.m3 = dart.const(dart.map({foo: 499}));
16 compile_time_constant_o_test_none_multi.m4 = dart.const(dart.map({[dart.str`${ compile_time_constant_o_test_none_multi.str}`]: 499}));
17 compile_time_constant_o_test_none_multi.m5 = dart.const(dart.map({["f" + "o" + "o"]: 499}));
18 compile_time_constant_o_test_none_multi.mm1 = dart.const(dart.map({"afoo#foo": 499}));
19 compile_time_constant_o_test_none_multi.mm2 = dart.const(dart.map({[dart.str`a ${compile_time_constant_o_test_none_multi.str}#${compile_time_constant_o_test_no ne_multi.str}`]: 499}));
20 compile_time_constant_o_test_none_multi.mm3 = dart.const(dart.map({["a" + dart .str`${compile_time_constant_o_test_none_multi.str}` + "#" + "foo"]: 499}));
21 compile_time_constant_o_test_none_multi.mm4 = dart.const(dart.map({[dart.str`a ${compile_time_constant_o_test_none_multi.str}` + dart.str`#${compile_time_const ant_o_test_none_multi.str}`]: 499}));
22 compile_time_constant_o_test_none_multi.main = function() {
23 expect$.Expect.equals(1, compile_time_constant_o_test_none_multi.m1[dartx.le ngth]);
24 expect$.Expect.equals(499, compile_time_constant_o_test_none_multi.m1[dartx. get]("foo"));
25 expect$.Expect.identical(compile_time_constant_o_test_none_multi.m1, compile _time_constant_o_test_none_multi.m2);
26 expect$.Expect.identical(compile_time_constant_o_test_none_multi.m1, compile _time_constant_o_test_none_multi.m3);
27 expect$.Expect.identical(compile_time_constant_o_test_none_multi.m1, compile _time_constant_o_test_none_multi.m4);
28 expect$.Expect.identical(compile_time_constant_o_test_none_multi.m1, compile _time_constant_o_test_none_multi.m5);
29 expect$.Expect.equals(1, compile_time_constant_o_test_none_multi.mm1[dartx.l ength]);
30 expect$.Expect.equals(499, compile_time_constant_o_test_none_multi.mm1[dartx .get]("afoo#foo"));
31 expect$.Expect.identical(compile_time_constant_o_test_none_multi.mm1, compil e_time_constant_o_test_none_multi.mm2);
32 expect$.Expect.identical(compile_time_constant_o_test_none_multi.mm1, compil e_time_constant_o_test_none_multi.mm3);
33 expect$.Expect.identical(compile_time_constant_o_test_none_multi.mm1, compil e_time_constant_o_test_none_multi.mm4);
34 };
35 dart.fn(compile_time_constant_o_test_none_multi.main, VoidTodynamic());
36 // Exports:
37 exports.compile_time_constant_o_test_none_multi = compile_time_constant_o_test _none_multi;
38 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698