| Index: test/data/input/watch_global_var2_test.html
|
| diff --git a/test/data/input/watch_global_var2_test.html b/test/data/input/watch_global_var2_test.html
|
| index 9f4fc00699f24c8beb0adb33725ce7f81e0bf640..e699acc1dcdedb0ea82952fed0f0947d1f99fb39 100644
|
| --- a/test/data/input/watch_global_var2_test.html
|
| +++ b/test/data/input/watch_global_var2_test.html
|
| @@ -8,21 +8,19 @@
|
| <head>
|
| <meta charset="utf-8">
|
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
| - <title>watch_global_var_test</title>
|
| <script type="application/javascript" src="testing.js"></script>
|
| </head>
|
| <body>
|
| <div>{{topLevelVar}}</div>
|
| <script type="application/dart">
|
| import 'dart:html';
|
| - import 'package:web_ui/watcher.dart';
|
| - String topLevelVar = "hi";
|
| + import 'package:web_ui/observe.dart';
|
| + @observable String topLevelVar = "hi";
|
| main() {
|
| // test for making a change on topLevelVar
|
| window.setTimeout(() {
|
| topLevelVar = "hello";
|
| - dispatch();
|
| - window.setTimeout(() => window.postMessage('done', '*'), 0);
|
| + window.setImmediate(() => window.postMessage('done', '*'));
|
| }, 0);
|
| }
|
| </script>
|
|
|