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

Unified Diff: test/codegen_expected/lib/html/xhr_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen_expected/lib/html/rtc_test.js ('k') | test/codegen_expected/map_keys.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/lib/html/xhr_test.js
diff --git a/test/codegen_expected/lib/html/xhr_test.js b/test/codegen_expected/lib/html/xhr_test.js
index ba827c5b9d08f0f378de412ee026e06bb7a71b5f..175d1feed09197a24f06dcb808a0cab645b88baa 100644
--- a/test/codegen_expected/lib/html/xhr_test.js
+++ b/test/codegen_expected/lib/html/xhr_test.js
@@ -145,7 +145,7 @@ dart_library.library('lib/html/xhr_test', null, /* Imports */[
}, VoidTodynamic()));
unittest$.test('XHR.request responseType arraybuffer', dart.fn(() => {
if (dart.test(html.Platform.supportsTypedData)) {
- html.HttpRequest.request(url, {responseType: 'arraybuffer', requestHeaders: dart.map({'Content-Type': 'text/xml'})}).then(dart.dynamic)(HttpRequestTodynamic()._check(unittest$.expectAsync(dart.fn(xhr => {
+ html.HttpRequest.request(url, {responseType: 'arraybuffer', requestHeaders: dart.map({'Content-Type': 'text/xml'}, core.String, core.String)}).then(dart.dynamic)(HttpRequestTodynamic()._check(unittest$.expectAsync(dart.fn(xhr => {
src__matcher__expect.expect(dart.dload(xhr, 'status'), src__matcher__core_matchers.equals(200));
let byteBuffer = dart.dload(xhr, 'response');
src__matcher__expect.expect(byteBuffer, new (isInstanceOfOfByteBuffer())());
@@ -178,7 +178,7 @@ dart_library.library('lib/html/xhr_test', null, /* Imports */[
}, VoidToFuture()));
}
unittest$.test('xhr postFormData', dart.fn(() => {
- let data = dart.map({name: 'John', time: '2 pm'});
+ let data = dart.map({name: 'John', time: '2 pm'}, core.String, core.String);
let parts = [];
for (let key of data[dartx.keys]) {
parts[dartx.add](dart.str`${core.Uri.encodeQueryComponent(key)}=` + dart.str`${core.Uri.encodeQueryComponent(data[dartx.get](key))}`);
@@ -204,7 +204,7 @@ dart_library.library('lib/html/xhr_test', null, /* Imports */[
unittest$.group('json', dart.fn(() => {
unittest$.test('xhr responseType json', dart.fn(() => {
let url = dart.str`${html.window[dartx.location][dartx.protocol]}//${html.window[dartx.location][dartx.host]}/echo`;
- let data = dart.map({key: 'value', a: 'b', one: 2});
+ let data = dart.map({key: 'value', a: 'b', one: 2}, core.String, core.Object);
html.HttpRequest.request(url, {method: 'POST', sendData: convert.JSON.encode(data), responseType: 'json'}).then(dart.dynamic)(HttpRequestTodynamic()._check(unittest$.expectAsync(dart.fn(xhr => {
src__matcher__expect.expect(dart.dload(xhr, 'status'), src__matcher__core_matchers.equals(200));
let json = dart.dload(xhr, 'response');
« no previous file with comments | « test/codegen_expected/lib/html/rtc_test.js ('k') | test/codegen_expected/map_keys.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698