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

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

Issue 1926283002: implement generic method runtime behavior, fixes #301 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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') | test/codegen/language/inferrer_synthesized_constructor_test.dart » ('j') | 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 aa2cfc29adf4c10f3ab3360d1bf224035e896df4..ff54c595eb5b303e9913e1e159dc000224b4eaf1 100644
--- a/test/codegen/expect/unittest/unittest.js
+++ b/test/codegen/expect/unittest/unittest.js
@@ -39,7 +39,7 @@ dart_library.library('unittest', null, /* Imports */[
if (!dart.is(item, core.Function) && !dart.is(item, async.Future)) return false;
if (dart.is(item, async.Future)) {
let done = dart.dcall(unittest._wrapAsync, dart.fn(fn => dart.dcall(fn)));
- item.then(dart.fn(value => {
+ item.then(dart.dynamic)(dart.fn(value => {
dart.dcall(done, dart.fn(() => {
unittest.fail(`Expected future to fail, but succeeded with '${value}'.`);
}));
@@ -117,7 +117,7 @@ dart_library.library('unittest', null, /* Imports */[
let result = dart.as(js.context.callMethod('test', dart.list([name, dart.fn(done => {
function _finishTest(f) {
if (dart.is(f, async.Future)) {
- f.then(_finishTest);
+ f.then(dart.dynamic)(_finishTest);
} else {
done.apply([]);
}
« no previous file with comments | « test/codegen/expect/unittest.js ('k') | test/codegen/language/inferrer_synthesized_constructor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698