OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library observe_utils; | 5 library observe_utils; |
6 | 6 |
7 import 'dart:async'; | |
8 import 'dart:html'; | 7 import 'dart:html'; |
9 import 'package:observe/observe.dart'; | 8 import 'package:observe/observe.dart'; |
10 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
11 | 10 |
12 import 'package:observe/src/microtask.dart'; | 11 import 'package:observe/src/microtask.dart'; |
13 export 'package:observe/src/microtask.dart'; | 12 export 'package:observe/src/microtask.dart'; |
14 | 13 |
15 final bool parserHasNativeTemplate = () { | 14 final bool parserHasNativeTemplate = () { |
16 var div = new DivElement()..innerHtml = '<table><template>'; | 15 var div = new DivElement()..innerHtml = '<table><template>'; |
17 return div.firstChild.firstChild != null && | 16 return div.firstChild.firstChild != null && |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 59 |
61 get bar => _bar; | 60 get bar => _bar; |
62 set bar(value) { | 61 set bar(value) { |
63 _bar = notifyPropertyChange(const Symbol('bar'), _bar, value); | 62 _bar = notifyPropertyChange(const Symbol('bar'), _bar, value); |
64 } | 63 } |
65 } | 64 } |
66 | 65 |
67 observeTest(name, testCase) => test(name, wrapMicrotask(testCase)); | 66 observeTest(name, testCase) => test(name, wrapMicrotask(testCase)); |
68 | 67 |
69 solo_observeTest(name, testCase) => solo_test(name, wrapMicrotask(testCase)); | 68 solo_observeTest(name, testCase) => solo_test(name, wrapMicrotask(testCase)); |
OLD | NEW |