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

Side by Side Diff: test/codegen_expected/lib/convert/chunked_conversion_json_decode1_test.js

Issue 2211293002: Reify type params on map literals (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove unnecessary null check Created 4 years, 4 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
1 dart_library.library('lib/convert/chunked_conversion_json_decode1_test', null, / * Imports */[ 1 dart_library.library('lib/convert/chunked_conversion_json_decode1_test', null, / * Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'expect' 3 'expect'
4 ], function load__chunked_conversion_json_decode1_test(exports, dart_sdk, expect ) { 4 ], function load__chunked_conversion_json_decode1_test(exports, dart_sdk, expect ) {
5 'use strict'; 5 'use strict';
6 const core = dart_sdk.core; 6 const core = dart_sdk.core;
7 const _interceptors = dart_sdk._interceptors; 7 const _interceptors = dart_sdk._interceptors;
8 const convert = dart_sdk.convert; 8 const convert = dart_sdk.convert;
9 const dart = dart_sdk.dart; 9 const dart = dart_sdk.dart;
10 const dartx = dart_sdk.dartx; 10 const dartx = dart_sdk.dartx;
11 const expect$ = expect.expect; 11 const expect$ = expect.expect;
12 const chunked_conversion_json_decode1_test = Object.create(null); 12 const chunked_conversion_json_decode1_test = Object.create(null);
13 let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSAr ray$(core.Object)))(); 13 let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSAr ray$(core.Object)))();
14 let JSArrayOfList = () => (JSArrayOfList = dart.constFn(_interceptors.JSArray$ (core.List)))(); 14 let JSArrayOfList = () => (JSArrayOfList = dart.constFn(_interceptors.JSArray$ (core.List)))();
15 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c ore.int)))(); 15 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c ore.int)))();
16 let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))(); 16 let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))();
17 let JSArrayOfListOfint = () => (JSArrayOfListOfint = dart.constFn(_interceptor s.JSArray$(ListOfint())))(); 17 let JSArrayOfListOfint = () => (JSArrayOfListOfint = dart.constFn(_interceptor s.JSArray$(ListOfint())))();
18 let ListOfObject = () => (ListOfObject = dart.constFn(core.List$(core.Object)) )(); 18 let ListOfObject = () => (ListOfObject = dart.constFn(core.List$(core.Object)) )();
19 let JSArrayOfListOfObject = () => (JSArrayOfListOfObject = dart.constFn(_inter ceptors.JSArray$(ListOfObject())))(); 19 let JSArrayOfListOfObject = () => (JSArrayOfListOfObject = dart.constFn(_inter ceptors.JSArray$(ListOfObject())))();
20 let dynamicAnddynamicTobool = () => (dynamicAnddynamicTobool = dart.constFn(da rt.definiteFunctionType(core.bool, [dart.dynamic, dart.dynamic])))(); 20 let dynamicAnddynamicTobool = () => (dynamicAnddynamicTobool = dart.constFn(da rt.definiteFunctionType(core.bool, [dart.dynamic, dart.dynamic])))();
21 let ListTovoid = () => (ListTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [core.List])))(); 21 let ListTovoid = () => (ListTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [core.List])))();
22 let StringToObject = () => (StringToObject = dart.constFn(dart.definiteFunctio nType(core.Object, [core.String])))(); 22 let StringToObject = () => (StringToObject = dart.constFn(dart.definiteFunctio nType(core.Object, [core.String])))();
23 let intTovoid = () => (intTovoid = dart.constFn(dart.definiteFunctionType(dart .void, [core.int])))(); 23 let intTovoid = () => (intTovoid = dart.constFn(dart.definiteFunctionType(dart .void, [core.int])))();
24 let ListOfObjectToIterable = () => (ListOfObjectToIterable = dart.constFn(dart .definiteFunctionType(core.Iterable, [ListOfObject()])))(); 24 let ListOfObjectToIterable = () => (ListOfObjectToIterable = dart.constFn(dart .definiteFunctionType(core.Iterable, [ListOfObject()])))();
25 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 25 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
26 dart.defineLazy(chunked_conversion_json_decode1_test, { 26 dart.defineLazy(chunked_conversion_json_decode1_test, {
27 get TESTS() { 27 get TESTS() {
28 return JSArrayOfListOfObject().of([JSArrayOfObject().of([5, '5']), JSArray OfObject().of([-42, '-42']), JSArrayOfObject().of([3.14, '3.14']), JSArrayOfObje ct().of([true, 'true']), JSArrayOfObject().of([false, 'false']), JSArrayOfObject ().of([null, 'null']), JSArrayOfObject().of(['quote"or\'', '"quote\\"or\'"']), J SArrayOfObject().of(['', '""']), JSArrayOfObject().of([[], "[]"]), JSArrayOfObje ct().of([JSArrayOfObject().of([3, -4.5, true, "hi", false]), '[3,-4.5,true,"hi", false]']), JSArrayOfObject().of([[null], "[null]"]), JSArrayOfObject().of([JSArr ayOfList().of([[null]]), "[[null]]"]), JSArrayOfObject().of([JSArrayOfListOfint( ).of([JSArrayOfint().of([3])]), "[[3]]"]), JSArrayOfObject().of([dart.map(), "{} "]), JSArrayOfObject().of([dart.map({x: 3, y: 4.5, z: "hi", u: true, v: false}), '{"x":3,"y":4.5,"z":"hi","u":true,"v":false}']), JSArrayOfObject().of([dart.map ({x: null}), '{"x":null}']), JSArrayOfObject().of([dart.map({x: dart.map()}), '{ "x":{}}']), JSArrayOfObject().of([dart.map({"hi there": 499, "'": -0.0}), '{"hi there":499,"\'":-0.0}']), JSArrayOfObject().of(['\\foo', '"\\\\foo"'])]); 28 return JSArrayOfListOfObject().of([JSArrayOfObject().of([5, '5']), JSArray OfObject().of([-42, '-42']), JSArrayOfObject().of([3.14, '3.14']), JSArrayOfObje ct().of([true, 'true']), JSArrayOfObject().of([false, 'false']), JSArrayOfObject ().of([null, 'null']), JSArrayOfObject().of(['quote"or\'', '"quote\\"or\'"']), J SArrayOfObject().of(['', '""']), JSArrayOfObject().of([[], "[]"]), JSArrayOfObje ct().of([JSArrayOfObject().of([3, -4.5, true, "hi", false]), '[3,-4.5,true,"hi", false]']), JSArrayOfObject().of([[null], "[null]"]), JSArrayOfObject().of([JSArr ayOfList().of([[null]]), "[[null]]"]), JSArrayOfObject().of([JSArrayOfListOfint( ).of([JSArrayOfint().of([3])]), "[[3]]"]), JSArrayOfObject().of([dart.map(), "{} "]), JSArrayOfObject().of([dart.map({x: 3, y: 4.5, z: "hi", u: true, v: false}, core.String, core.Object), '{"x":3,"y":4.5,"z":"hi","u":true,"v":false}']), JSAr rayOfObject().of([dart.map({x: null}, core.String, dart.dynamic), '{"x":null}']) , JSArrayOfObject().of([dart.map({x: dart.map()}, core.String, core.Map), '{"x": {}}']), JSArrayOfObject().of([dart.map({"hi there": 499, "'": -0.0}, core.String , core.num), '{"hi there":499,"\'":-0.0}']), JSArrayOfObject().of(['\\foo', '"\\ \\foo"'])]);
29 } 29 }
30 }); 30 });
31 chunked_conversion_json_decode1_test.isJsonEqual = function(o1, o2) { 31 chunked_conversion_json_decode1_test.isJsonEqual = function(o1, o2) {
32 if (dart.equals(o1, o2)) return true; 32 if (dart.equals(o1, o2)) return true;
33 if (core.List.is(o1) && core.List.is(o2)) { 33 if (core.List.is(o1) && core.List.is(o2)) {
34 if (o1[dartx.length] != o2[dartx.length]) return false; 34 if (o1[dartx.length] != o2[dartx.length]) return false;
35 for (let i = 0; i < dart.notNull(o1[dartx.length]); i++) { 35 for (let i = 0; i < dart.notNull(o1[dartx.length]); i++) {
36 if (!dart.test(chunked_conversion_json_decode1_test.isJsonEqual(o1[dartx .get](i), o2[dartx.get](i)))) return false; 36 if (!dart.test(chunked_conversion_json_decode1_test.isJsonEqual(o1[dartx .get](i), o2[dartx.get](i)))) return false;
37 } 37 }
38 return true; 38 return true;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode4(core.String._check(string)))); 142 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode4(core.String._check(string))));
143 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode5(core.String._check(string)))); 143 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode5(core.String._check(string))));
144 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode6(core.String._check(string)))); 144 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode6(core.String._check(string))));
145 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode7(core.String._check(string)))); 145 expect$.Expect.isTrue(chunked_conversion_json_decode1_test.isJsonEqual(o, chunked_conversion_json_decode1_test.decode7(core.String._check(string))));
146 } 146 }
147 }; 147 };
148 dart.fn(chunked_conversion_json_decode1_test.main, VoidTodynamic()); 148 dart.fn(chunked_conversion_json_decode1_test.main, VoidTodynamic());
149 // Exports: 149 // Exports:
150 exports.chunked_conversion_json_decode1_test = chunked_conversion_json_decode1 _test; 150 exports.chunked_conversion_json_decode1_test = chunked_conversion_json_decode1 _test;
151 }); 151 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698