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

Unified Diff: test/codegen/expect/unittest/unittest.js

Issue 1261783005: fixes #197, don't generate casts that always pass (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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/expect/unittest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/unittest/unittest.js
diff --git a/test/codegen/expect/unittest/unittest.js b/test/codegen/expect/unittest/unittest.js
index 70700e8f6fbf833cdcf1a2bb1854e88a6ec7c705..06ff55a4dcf38ae9cd19d715d5a44505451c71e7 100644
--- a/test/codegen/expect/unittest/unittest.js
+++ b/test/codegen/expect/unittest/unittest.js
@@ -8,7 +8,7 @@ dart_library.library('unittest/unittest', null, /* Imports */[
'use strict';
let dartx = dart.dartx;
function group(name, body) {
- return dart.dsend(dart.as(dom.window, dart.dynamic), 'suite', name, body);
+ return dart.dsend(dom.window, 'suite', name, body);
}
dart.fn(group, dart.void, [core.String, dart.functionType(dart.void, [])]);
function test(name, body, opts) {
@@ -17,7 +17,7 @@ dart_library.library('unittest/unittest', null, /* Imports */[
core.print(`SKIP ${name}: ${skip}`);
return;
}
- dart.dsend(dart.as(dom.window, dart.dynamic), 'test', name, dart.fn(done => {
+ dart.dsend(dom.window, 'test', name, dart.fn(done => {
function _finishTest(f) {
if (dart.is(f, async.Future)) {
dart.dsend(f, 'then', _finishTest);
« no previous file with comments | « test/codegen/expect/unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698