fix(examples): make todo example run again
This commit is contained in:
parent
c8cf03f200
commit
d42fa07863
|
@ -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;
|
||||
|
|
|
@ -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>
|
|
@ -0,0 +1 @@
|
|||
new (System.get("examples/todo/app").App)().run();
|
|
@ -1 +0,0 @@
|
|||
new (System.get("examples/src/todo/app").App)().run();
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue