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

@ -1,6 +1,5 @@
import {DOM} from './dom';
import {DOM} from 'facade/dom';
export class App {
@field('input:Element')
constructor() {
this.input = null;
this.list = null;

View File

@ -9,12 +9,12 @@
<script src="main.dart" type="application/dart"></script>
<% } else { %>
<script src="../../../traceur-runtime.js" type="text/javascript"></script>
<script src="../../../assert.js" type="text/javascript"></script>
<script src="../../../rtts_assert/lib/rtts_assert.js" type="text/javascript"></script>
<script src="app.js" type="text/javascript"></script>
<script src="dom.js" type="text/javascript"></script>
<script src="../../../facade/lib/dom.js" type="text/javascript"></script>
<script src="main.js"></script>
<script src="main.es5" type="text/javascript"></script>
<% } %>
</body>
</html>

View File

@ -0,0 +1 @@
new (System.get("examples/todo/app").App)().run();

View File

@ -1 +0,0 @@
new (System.get("examples/src/todo/app").App)().run();

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);
}
};