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

Side by Side Diff: test/codegen_expected/lib/html/element_animate_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/html/element_animate_test', null, /* Imports */[ 1 dart_library.library('lib/html/element_animate_test', null, /* Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'unittest' 3 'unittest'
4 ], function load__element_animate_test(exports, dart_sdk, unittest) { 4 ], function load__element_animate_test(exports, dart_sdk, unittest) {
5 'use strict'; 5 'use strict';
6 const core = dart_sdk.core; 6 const core = dart_sdk.core;
7 const html = dart_sdk.html; 7 const html = dart_sdk.html;
8 const _interceptors = dart_sdk._interceptors; 8 const _interceptors = dart_sdk._interceptors;
9 const dart = dart_sdk.dart; 9 const dart = dart_sdk.dart;
10 const dartx = dart_sdk.dartx; 10 const dartx = dart_sdk.dartx;
(...skipping 12 matching lines...) Expand all
23 html_individual_config.useHtmlIndividualConfiguration(); 23 html_individual_config.useHtmlIndividualConfiguration();
24 unittest$.group('animate_supported', dart.fn(() => { 24 unittest$.group('animate_supported', dart.fn(() => {
25 unittest$.test('supported', dart.fn(() => { 25 unittest$.test('supported', dart.fn(() => {
26 src__matcher__expect.expect(html.Animation[dartx.supported], src__matche r__core_matchers.isTrue); 26 src__matcher__expect.expect(html.Animation[dartx.supported], src__matche r__core_matchers.isTrue);
27 }, VoidTodynamic())); 27 }, VoidTodynamic()));
28 }, VoidTovoid())); 28 }, VoidTovoid()));
29 unittest$.group('simple_timing', dart.fn(() => { 29 unittest$.group('simple_timing', dart.fn(() => {
30 unittest$.test('simple timing', dart.fn(() => { 30 unittest$.test('simple timing', dart.fn(() => {
31 let body = html.document[dartx.body]; 31 let body = html.document[dartx.body];
32 let opacity = core.num.parse(body[dartx.getComputedStyle]()[dartx.opacit y]); 32 let opacity = core.num.parse(body[dartx.getComputedStyle]()[dartx.opacit y]);
33 body[dartx.animate](JSArrayOfMapOfString$dynamic().of([dart.map({opacity : 100}), dart.map({opacity: 0})]), 100); 33 body[dartx.animate](JSArrayOfMapOfString$dynamic().of([dart.map({opacity : 100}, core.String, dart.dynamic), dart.map({opacity: 0}, core.String, dart.dyn amic)]), 100);
34 let newOpacity = core.num.parse(body[dartx.getComputedStyle]()[dartx.opa city]); 34 let newOpacity = core.num.parse(body[dartx.getComputedStyle]()[dartx.opa city]);
35 src__matcher__expect.expect(newOpacity == opacity, src__matcher__core_ma tchers.isTrue); 35 src__matcher__expect.expect(newOpacity == opacity, src__matcher__core_ma tchers.isTrue);
36 }, VoidTodynamic())); 36 }, VoidTodynamic()));
37 }, VoidTovoid())); 37 }, VoidTovoid()));
38 unittest$.group('timing_dict', dart.fn(() => { 38 unittest$.group('timing_dict', dart.fn(() => {
39 unittest$.test('timing dict', dart.fn(() => { 39 unittest$.test('timing dict', dart.fn(() => {
40 let body = html.document[dartx.body]; 40 let body = html.document[dartx.body];
41 let fontSize = body[dartx.getComputedStyle]()[dartx.fontSize]; 41 let fontSize = body[dartx.getComputedStyle]()[dartx.fontSize];
42 let player = body[dartx.animate](JSArrayOfMapOfString$dynamic().of([dart .map({"font-size": "500px"}), dart.map({"font-size": fontSize})]), dart.map({dur ation: 100})); 42 let player = body[dartx.animate](JSArrayOfMapOfString$dynamic().of([dart .map({"font-size": "500px"}, core.String, dart.dynamic), dart.map({"font-size": fontSize}, core.String, dart.dynamic)]), dart.map({duration: 100}, core.String, core.int));
43 let newFontSize = body[dartx.getComputedStyle]()[dartx.fontSize]; 43 let newFontSize = body[dartx.getComputedStyle]()[dartx.fontSize];
44 src__matcher__expect.expect(newFontSize == fontSize, src__matcher__core_ matchers.isFalse); 44 src__matcher__expect.expect(newFontSize == fontSize, src__matcher__core_ matchers.isFalse);
45 player[dartx.on].get('finish').listen(dynamicTovoid()._check(unittest$.e xpectAsync(dart.fn(_ => 'done', dynamicToString())))); 45 player[dartx.on].get('finish').listen(dynamicTovoid()._check(unittest$.e xpectAsync(dart.fn(_ => 'done', dynamicToString()))));
46 }, VoidTodynamic())); 46 }, VoidTodynamic()));
47 }, VoidTovoid())); 47 }, VoidTovoid()));
48 unittest$.group('omit_timing', dart.fn(() => { 48 unittest$.group('omit_timing', dart.fn(() => {
49 unittest$.test('omit timing', dart.fn(() => { 49 unittest$.test('omit timing', dart.fn(() => {
50 let body = html.document[dartx.body]; 50 let body = html.document[dartx.body];
51 let player = body[dartx.animate](JSArrayOfMapOfString$dynamic().of([dart .map({transform: "translate(100px, -100%)"}), dart.map({transform: "translate(40 0px, 500px)"})])); 51 let player = body[dartx.animate](JSArrayOfMapOfString$dynamic().of([dart .map({transform: "translate(100px, -100%)"}, core.String, dart.dynamic), dart.ma p({transform: "translate(400px, 500px)"}, core.String, dart.dynamic)]));
52 player[dartx.on].get('finish').listen(dynamicTovoid()._check(unittest$.e xpectAsync(dart.fn(_ => 'done', dynamicToString())))); 52 player[dartx.on].get('finish').listen(dynamicTovoid()._check(unittest$.e xpectAsync(dart.fn(_ => 'done', dynamicToString()))));
53 }, VoidTodynamic())); 53 }, VoidTodynamic()));
54 }, VoidTovoid())); 54 }, VoidTovoid()));
55 }; 55 };
56 dart.fn(element_animate_test.main, VoidTodynamic()); 56 dart.fn(element_animate_test.main, VoidTodynamic());
57 // Exports: 57 // Exports:
58 exports.element_animate_test = element_animate_test; 58 exports.element_animate_test = element_animate_test;
59 }); 59 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698