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

Side by Side Diff: test/codegen_expected/lib/html/fontface_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/fontface_test', null, /* Imports */[ 1 dart_library.library('lib/html/fontface_test', null, /* Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'unittest' 3 'unittest'
4 ], function load__fontface_test(exports, dart_sdk, unittest) { 4 ], function load__fontface_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 dart = dart_sdk.dart; 8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx; 9 const dartx = dart_sdk.dartx;
10 const html_config = unittest.html_config; 10 const html_config = unittest.html_config;
11 const unittest$ = unittest.unittest; 11 const unittest$ = unittest.unittest;
12 const src__matcher__expect = unittest.src__matcher__expect; 12 const src__matcher__expect = unittest.src__matcher__expect;
13 const src__matcher__core_matchers = unittest.src__matcher__core_matchers; 13 const src__matcher__core_matchers = unittest.src__matcher__core_matchers;
14 const fontface_test = Object.create(null); 14 const fontface_test = Object.create(null);
15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
16 fontface_test.main = function() { 16 fontface_test.main = function() {
17 html_config.useHtmlConfiguration(); 17 html_config.useHtmlConfiguration();
18 unittest$.test("Creation with parameters", dart.fn(() => { 18 unittest$.test("Creation with parameters", dart.fn(() => {
19 let font = html.FontFace.new('Ahem', 'url(Ahem.ttf)', dart.map({variant: ' small-caps'})); 19 let font = html.FontFace.new('Ahem', 'url(Ahem.ttf)', dart.map({variant: ' small-caps'}, core.String, core.String));
20 src__matcher__expect.expect(html.FontFace.is(font), src__matcher__core_mat chers.isTrue); 20 src__matcher__expect.expect(html.FontFace.is(font), src__matcher__core_mat chers.isTrue);
21 src__matcher__expect.expect(font[dartx.family], 'Ahem'); 21 src__matcher__expect.expect(font[dartx.family], 'Ahem');
22 src__matcher__expect.expect(font[dartx.variant], 'small-caps'); 22 src__matcher__expect.expect(font[dartx.variant], 'small-caps');
23 }, VoidTodynamic())); 23 }, VoidTodynamic()));
24 }; 24 };
25 dart.fn(fontface_test.main, VoidTodynamic()); 25 dart.fn(fontface_test.main, VoidTodynamic());
26 // Exports: 26 // Exports:
27 exports.fontface_test = fontface_test; 27 exports.fontface_test = fontface_test;
28 }); 28 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698