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

Side by Side Diff: test/codegen_expected/lib/convert/streamed_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: Suppress empty arg with dynamic params 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/streamed_conversion_json_decode1_test', null, /* Imports */[ 1 dart_library.library('lib/convert/streamed_conversion_json_decode1_test', null, /* Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'expect', 3 'expect',
4 'async_helper' 4 'async_helper'
5 ], function load__streamed_conversion_json_decode1_test(exports, dart_sdk, expec t, async_helper) { 5 ], function load__streamed_conversion_json_decode1_test(exports, dart_sdk, expec t, async_helper) {
6 'use strict'; 6 'use strict';
7 const core = dart_sdk.core; 7 const core = dart_sdk.core;
8 const _interceptors = dart_sdk._interceptors; 8 const _interceptors = dart_sdk._interceptors;
9 const convert = dart_sdk.convert; 9 const convert = dart_sdk.convert;
10 const async = dart_sdk.async; 10 const async = dart_sdk.async;
(...skipping 15 matching lines...) Expand all
26 let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSAr ray$(core.String)))(); 26 let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSAr ray$(core.String)))();
27 let dynamicAnddynamicTobool = () => (dynamicAnddynamicTobool = dart.constFn(da rt.definiteFunctionType(core.bool, [dart.dynamic, dart.dynamic])))(); 27 let dynamicAnddynamicTobool = () => (dynamicAnddynamicTobool = dart.constFn(da rt.definiteFunctionType(core.bool, [dart.dynamic, dart.dynamic])))();
28 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))(); 28 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
29 let ListOfStringToStreamOfObject = () => (ListOfStringToStreamOfObject = dart. constFn(dart.definiteFunctionType(StreamOfObject(), [ListOfString()])))(); 29 let ListOfStringToStreamOfObject = () => (ListOfStringToStreamOfObject = dart. constFn(dart.definiteFunctionType(StreamOfObject(), [ListOfString()])))();
30 let StringToStreamOfObject = () => (StringToStreamOfObject = dart.constFn(dart .definiteFunctionType(StreamOfObject(), [core.String])))(); 30 let StringToStreamOfObject = () => (StringToStreamOfObject = dart.constFn(dart .definiteFunctionType(StreamOfObject(), [core.String])))();
31 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))(); 31 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
32 let dynamicAnddynamicTovoid = () => (dynamicAnddynamicTovoid = dart.constFn(da rt.definiteFunctionType(dart.void, [dart.dynamic, dart.dynamic])))(); 32 let dynamicAnddynamicTovoid = () => (dynamicAnddynamicTovoid = dart.constFn(da rt.definiteFunctionType(dart.void, [dart.dynamic, dart.dynamic])))();
33 let ListOfObjectToIterable = () => (ListOfObjectToIterable = dart.constFn(dart .definiteFunctionType(core.Iterable, [ListOfObject()])))(); 33 let ListOfObjectToIterable = () => (ListOfObjectToIterable = dart.constFn(dart .definiteFunctionType(core.Iterable, [ListOfObject()])))();
34 dart.defineLazy(streamed_conversion_json_decode1_test, { 34 dart.defineLazy(streamed_conversion_json_decode1_test, {
35 get TESTS() { 35 get TESTS() {
36 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"'])]); 36 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"'])]);
37 } 37 }
38 }); 38 });
39 streamed_conversion_json_decode1_test.isJsonEqual = function(o1, o2) { 39 streamed_conversion_json_decode1_test.isJsonEqual = function(o1, o2) {
40 if (dart.equals(o1, o2)) return true; 40 if (dart.equals(o1, o2)) return true;
41 if (core.List.is(o1) && core.List.is(o2)) { 41 if (core.List.is(o1) && core.List.is(o2)) {
42 if (o1[dartx.length] != o2[dartx.length]) return false; 42 if (o1[dartx.length] != o2[dartx.length]) return false;
43 for (let i = 0; i < dart.notNull(o1[dartx.length]); i++) { 43 for (let i = 0; i < dart.notNull(o1[dartx.length]); i++) {
44 if (!dart.test(streamed_conversion_json_decode1_test.isJsonEqual(o1[dart x.get](i), o2[dartx.get](i)))) return false; 44 if (!dart.test(streamed_conversion_json_decode1_test.isJsonEqual(o1[dart x.get](i), o2[dartx.get](i)))) return false;
45 } 45 }
46 return true; 46 return true;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 let o = test[dartx.get](0); 94 let o = test[dartx.get](0);
95 let string = test[dartx.get](1); 95 let string = test[dartx.get](1);
96 streamed_conversion_json_decode1_test.checkIsJsonEqual(o, streamed_convers ion_json_decode1_test.decode(core.String._check(string))); 96 streamed_conversion_json_decode1_test.checkIsJsonEqual(o, streamed_convers ion_json_decode1_test.decode(core.String._check(string)));
97 streamed_conversion_json_decode1_test.checkIsJsonEqual(o, streamed_convers ion_json_decode1_test.decode2(core.String._check(string))); 97 streamed_conversion_json_decode1_test.checkIsJsonEqual(o, streamed_convers ion_json_decode1_test.decode2(core.String._check(string)));
98 } 98 }
99 }; 99 };
100 dart.fn(streamed_conversion_json_decode1_test.main, VoidTovoid()); 100 dart.fn(streamed_conversion_json_decode1_test.main, VoidTovoid());
101 // Exports: 101 // Exports:
102 exports.streamed_conversion_json_decode1_test = streamed_conversion_json_decod e1_test; 102 exports.streamed_conversion_json_decode1_test = streamed_conversion_json_decod e1_test;
103 }); 103 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698