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

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

Issue 1355893003: Rewire DDC to use the analyzer task model (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 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
Index: test/codegen/expect/async_helper.js
diff --git a/test/codegen/expect/async_helper.js b/test/codegen/expect/async_helper.js
index f63f4fade40194e278d1f5729f41a6ce7eb67ce5..1a24cde66defa79df5e212f3c683186569224ddd 100644
--- a/test/codegen/expect/async_helper.js
+++ b/test/codegen/expect/async_helper.js
@@ -26,13 +26,13 @@ dart_library.library('async_helper', null, /* Imports */[
});
function asyncStart() {
if (dart.notNull(exports._initialized) && exports._asyncLevel == 0) {
- dart.throw(_buildException('asyncStart() was called even though we are done ' + 'with testing.'));
+ dart.throw(dart.dcall(_buildException, 'asyncStart() was called even though we are done ' + 'with testing.'));
}
if (!dart.notNull(exports._initialized)) {
if (exports._onAsyncEnd == null) {
- dart.throw(_buildException('asyncStart() was called before asyncTestInitialize()'));
+ dart.throw(dart.dcall(_buildException, 'asyncStart() was called before asyncTestInitialize()'));
}
- core.print('unittest-suite-wait-for-done');
+ dart.dcall(core.print, 'unittest-suite-wait-for-done');
exports._initialized = true;
}
exports._asyncLevel = dart.notNull(exports._asyncLevel) + 1;
@@ -41,9 +41,9 @@ dart_library.library('async_helper', null, /* Imports */[
function asyncEnd() {
if (dart.notNull(exports._asyncLevel) <= 0) {
if (!dart.notNull(exports._initialized)) {
- dart.throw(_buildException('asyncEnd() was called before asyncStart().'));
+ dart.throw(dart.dcall(_buildException, 'asyncEnd() was called before asyncStart().'));
} else {
- dart.throw(_buildException('asyncEnd() was called more often than ' + 'asyncStart().'));
+ dart.throw(dart.dcall(_buildException, 'asyncEnd() was called more often than ' + 'asyncStart().'));
}
}
exports._asyncLevel = dart.notNull(exports._asyncLevel) - 1;
@@ -51,16 +51,16 @@ dart_library.library('async_helper', null, /* Imports */[
let callback = exports._onAsyncEnd;
exports._onAsyncEnd = null;
callback();
- core.print('unittest-suite-success');
+ dart.dcall(core.print, 'unittest-suite-success');
}
}
dart.fn(asyncEnd, dart.void, []);
function asyncSuccess(_) {
- return asyncEnd();
+ return dart.dcall(asyncEnd);
}
dart.fn(asyncSuccess, dart.void, [dart.dynamic]);
function asyncTest(f) {
- asyncStart();
+ dart.dcall(asyncStart);
dart.dsend(f(), 'then', asyncSuccess);
}
dart.fn(asyncTest, dart.void, [dart.functionType(dart.dynamic, [])]);

Powered by Google App Engine
This is Rietveld 408576698