Index: test/codegen/expect/unittest.js |
diff --git a/test/codegen/expect/unittest.js b/test/codegen/expect/unittest.js |
index 671719272dab6d92c854ba0eec0ada83b81d5c77..a5a5182ba852cd7596ee8731ae99a43ee9592c6a 100644 |
--- a/test/codegen/expect/unittest.js |
+++ b/test/codegen/expect/unittest.js |
@@ -25,7 +25,7 @@ dart_library.library('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); |
} |