OLD | NEW |
1 <html> | 1 <html> |
2 <import src="../resources/chai.sky" /> | 2 <import src="../resources/chai.sky" /> |
3 <import src="../resources/mocha.sky" /> | 3 <import src="../resources/mocha.sky" /> |
4 <import src="/sky/framework/sky-element/observe.sky" as="observe" /> | 4 <import src="/sky/framework/elements/sky-element/observe.sky" as="observe" /> |
5 | 5 |
6 <script> | 6 <script> |
7 | 7 |
8 var Path = observe.Path; | 8 var Path = observe.Path; |
9 var PathObserver = observe.PathObserver; | 9 var PathObserver = observe.PathObserver; |
10 var ArrayObserver = observe.ArrayObserver; | 10 var ArrayObserver = observe.ArrayObserver; |
11 var ObjectObserver = observe.ObjectObserver; | 11 var ObjectObserver = observe.ObjectObserver; |
12 var CompoundObserver = observe.CompoundObserver; | 12 var CompoundObserver = observe.CompoundObserver; |
13 var ObserverTransform = observe.ObserverTransform; | 13 var ObserverTransform = observe.ObserverTransform; |
14 | 14 |
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1726 model = ['1', '2', '3', '4', '5']; | 1726 model = ['1', '2', '3', '4', '5']; |
1727 observer = new ArrayObserver(model); | 1727 observer = new ArrayObserver(model); |
1728 observer.open(callback); | 1728 observer.open(callback); |
1729 model.length = 0; | 1729 model.length = 0; |
1730 model.push('a', '2', 'y', 'y', '4', '5', 'z', 'z'); | 1730 model.push('a', '2', 'y', 'y', '4', '5', 'z', 'z'); |
1731 assertEditDistance(model, 7); | 1731 assertEditDistance(model, 7); |
1732 observer.close(); | 1732 observer.close(); |
1733 }); | 1733 }); |
1734 }); | 1734 }); |
1735 </script> | 1735 </script> |
OLD | NEW |