Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: third_party/pkg/angular/perf/dom/compile_perf.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/angular/perf.sh ('k') | third_party/pkg/angular/perf/invoke_perf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/perf/dom/compile_perf.dart
diff --git a/third_party/pkg/angular/perf/dom/compile_perf.dart b/third_party/pkg/angular/perf/dom/compile_perf.dart
index 3fcf728319ffba5fc2b15a7d6693e9c9447e8012..061992ae943ced708e96e118cf72b2d0b1665392 100644
--- a/third_party/pkg/angular/perf/dom/compile_perf.dart
+++ b/third_party/pkg/angular/perf/dom/compile_perf.dart
@@ -1,23 +1,25 @@
import '_perf.dart';
-main() => describe('compiler', () {
- describe('block instantiation', () {
- it('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"]}';
+void main() {
+ describe('compiler', () {
+ describe('view instantiation', () {
+ it('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"]}';
- time('create 100 blocks',
- () => tb.rootScope.apply(() => tb.rootScope.context['items'] = items),
- cleanUp: () => tb.rootScope.apply(() => tb.rootScope.context['items'] = empty),
- verify: () => expect(tb.rootElement.querySelectorAll('li').length).toEqual(100));
- }));
+ time('create 100 views',
+ () => tb.rootScope.apply(() => tb.rootScope.context['items'] = items),
+ cleanUp: () => tb.rootScope.apply(() => tb.rootScope.context['items'] = empty),
+ verify: () => expect(tb.rootElement.querySelectorAll('li').length).toEqual(100));
+ }));
+ });
});
-});
+}
var UL_REPEATER =
"""
« no previous file with comments | « third_party/pkg/angular/perf.sh ('k') | third_party/pkg/angular/perf/invoke_perf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698