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

Side by Side Diff: test/codegen_expected/lib/html/rtc_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/rtc_test', null, /* Imports */[ 1 dart_library.library('lib/html/rtc_test', null, /* Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'unittest' 3 'unittest'
4 ], function load__rtc_test(exports, dart_sdk, unittest) { 4 ], function load__rtc_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;
11 const html_individual_config = unittest.html_individual_config; 11 const html_individual_config = unittest.html_individual_config;
12 const unittest$ = unittest.unittest; 12 const unittest$ = unittest.unittest;
13 const src__matcher__expect = unittest.src__matcher__expect; 13 const src__matcher__expect = unittest.src__matcher__expect;
14 const src__matcher__core_matchers = unittest.src__matcher__core_matchers; 14 const src__matcher__core_matchers = unittest.src__matcher__core_matchers;
15 const rtc_test = Object.create(null); 15 const rtc_test = Object.create(null);
16 let MapOfString$String = () => (MapOfString$String = dart.constFn(core.Map$(co re.String, core.String)))(); 16 let MapOfString$String = () => (MapOfString$String = dart.constFn(core.Map$(co re.String, core.String)))();
17 let JSArrayOfMapOfString$String = () => (JSArrayOfMapOfString$String = dart.co nstFn(_interceptors.JSArray$(MapOfString$String())))(); 17 let JSArrayOfMapOfString$String = () => (JSArrayOfMapOfString$String = dart.co nstFn(_interceptors.JSArray$(MapOfString$String())))();
18 let ListOfMapOfString$String = () => (ListOfMapOfString$String = dart.constFn( core.List$(MapOfString$String())))();
18 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 19 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
19 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))(); 20 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
20 rtc_test.main = function() { 21 rtc_test.main = function() {
21 html_individual_config.useHtmlIndividualConfiguration(); 22 html_individual_config.useHtmlIndividualConfiguration();
22 unittest$.group('supported', dart.fn(() => { 23 unittest$.group('supported', dart.fn(() => {
23 unittest$.test('supported', dart.fn(() => { 24 unittest$.test('supported', dart.fn(() => {
24 src__matcher__expect.expect(html.RtcPeerConnection[dartx.supported], tru e); 25 src__matcher__expect.expect(html.RtcPeerConnection[dartx.supported], tru e);
25 }, VoidTodynamic())); 26 }, VoidTodynamic()));
26 }, VoidTovoid())); 27 }, VoidTovoid()));
27 unittest$.group('functionality', dart.fn(() => { 28 unittest$.group('functionality', dart.fn(() => {
28 if (dart.test(html.RtcPeerConnection[dartx.supported])) { 29 if (dart.test(html.RtcPeerConnection[dartx.supported])) {
29 unittest$.test('peer connection', dart.fn(() => { 30 unittest$.test('peer connection', dart.fn(() => {
30 let pc = html.RtcPeerConnection.new(dart.map({iceServers: JSArrayOfMap OfString$String().of([dart.map({url: 'stun:216.93.246.18:3478'})])})); 31 let pc = html.RtcPeerConnection.new(dart.map({iceServers: JSArrayOfMap OfString$String().of([dart.map({url: 'stun:216.93.246.18:3478'}, core.String, co re.String)])}, core.String, ListOfMapOfString$String()));
31 src__matcher__expect.expect(html.RtcPeerConnection.is(pc), src__matche r__core_matchers.isTrue); 32 src__matcher__expect.expect(html.RtcPeerConnection.is(pc), src__matche r__core_matchers.isTrue);
32 }, VoidTodynamic())); 33 }, VoidTodynamic()));
33 unittest$.test('ice candidate', dart.fn(() => { 34 unittest$.test('ice candidate', dart.fn(() => {
34 let candidate = html.RtcIceCandidate.new(dart.map({sdpMLineIndex: 1, c andidate: 'hello'})); 35 let candidate = html.RtcIceCandidate.new(dart.map({sdpMLineIndex: 1, c andidate: 'hello'}, core.String, core.Object));
35 src__matcher__expect.expect(html.RtcIceCandidate.is(candidate), src__m atcher__core_matchers.isTrue); 36 src__matcher__expect.expect(html.RtcIceCandidate.is(candidate), src__m atcher__core_matchers.isTrue);
36 }, VoidTodynamic())); 37 }, VoidTodynamic()));
37 unittest$.test('session description', dart.fn(() => { 38 unittest$.test('session description', dart.fn(() => {
38 let description = html.RtcSessionDescription.new(dart.map({sdp: 'foo', type: 'offer'})); 39 let description = html.RtcSessionDescription.new(dart.map({sdp: 'foo', type: 'offer'}, core.String, core.String));
39 src__matcher__expect.expect(html.RtcSessionDescription.is(description) , src__matcher__core_matchers.isTrue); 40 src__matcher__expect.expect(html.RtcSessionDescription.is(description) , src__matcher__core_matchers.isTrue);
40 }, VoidTodynamic())); 41 }, VoidTodynamic()));
41 } 42 }
42 }, VoidTovoid())); 43 }, VoidTovoid()));
43 }; 44 };
44 dart.fn(rtc_test.main, VoidTodynamic()); 45 dart.fn(rtc_test.main, VoidTodynamic());
45 // Exports: 46 // Exports:
46 exports.rtc_test = rtc_test; 47 exports.rtc_test = rtc_test;
47 }); 48 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698