| Index: third_party/pkg/angular/perf/dom/compile_perf.dart
|
| ===================================================================
|
| --- third_party/pkg/angular/perf/dom/compile_perf.dart (revision 33054)
|
| +++ third_party/pkg/angular/perf/dom/compile_perf.dart (working copy)
|
| @@ -2,18 +2,18 @@
|
|
|
| main() => describe('compiler', () {
|
| describe('block instantiation', () {
|
| - it('time ', inject((TestBed tb) {
|
| + iit('time ', inject((TestBed tb) {
|
| tb.compile(UL_REPEATER);
|
| var items = [];
|
| for(var i = 0; i < 100; i++) {
|
| items.add({"text":'text_$i', "done": i & 1 == 1});
|
| }
|
| var empty = [];
|
| - tb.rootScope.context['classFor'] = (item) => 'ng-${item["done"]}';
|
| + tb.rootScope.classFor = (item) => 'ng-${item["done"]}';
|
|
|
| time('create 100 blocks',
|
| - () => tb.rootScope.apply(() => tb.rootScope.context['items'] = items),
|
| - cleanUp: () => tb.rootScope.apply(() => tb.rootScope.context['items'] = empty),
|
| + () => tb.rootScope.$apply(() => tb.rootScope.items = items),
|
| + cleanUp: () => tb.rootScope.$apply(() => tb.rootScope.items = empty),
|
| verify: () => expect(tb.rootElement.querySelectorAll('li').length).toEqual(100));
|
| }));
|
| });
|
|
|