fix(examples): make todo example run again

This commit is contained in:
Tobias Bosch
2014-09-26 17:38:38 -07:00
parent c8cf03f200
commit d42fa07863
5 changed files with 12 additions and 7 deletions

View File

@ -5,4 +5,10 @@ export var afterEach = window.afterEach;
export var expect = window.expect;
// To make testing consistent between dart and js
window.print = window.dump || window.console.log;
window.print = function(msg) {
if (window.dump) {
window.dump(msg);
} else {
window.console.log(msg);
}
};