Index: test/codegen/expect/unittest/unittest.js |
diff --git a/test/codegen/expect/unittest/unittest.js b/test/codegen/expect/unittest/unittest.js |
index 245f8ea94b6d4643e7811198ed7d8aa47b258b4a..c1ba74bc7bc69b2cd3faca46640c46dfbbc54893 100644 |
--- a/test/codegen/expect/unittest/unittest.js |
+++ b/test/codegen/expect/unittest/unittest.js |
@@ -25,7 +25,7 @@ dart_library.library('unittest/unittest', null, /* Imports */[ |
dart.dsend(dom.window, 'test', name, dart.fn(done => { |
function _finishTest(f) { |
if (dart.is(f, async.Future)) { |
- dart.dsend(f, 'then', _finishTest); |
+ f.then(_finishTest); |
} else { |
dart.dcall(done); |
} |