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

Side by Side Diff: third_party/pkg/angular/test/directive/ng_bind_template_spec.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library ng_bind_template_spec; 1 library ng_bind_template_spec;
2 2
3 import '../_specs.dart'; 3 import '../_specs.dart';
4 4
5 main() { 5 main() {
6 describe('BindTemplateDirective', () { 6 describe('BindTemplateDirective', () {
7 TestBed _; 7 TestBed _;
8 8
9 beforeEach(inject((TestBed tb) => _ = tb)); 9 beforeEach((TestBed tb) => _ = tb);
10 10
11 it('should bind template', 11 it('should bind template',
12 inject((Scope scope, Injector injector, Compiler compiler) { 12 (Scope scope, Injector injector, Compiler compiler) {
13 var element = _.compile('<div ng-bind-template="{{salutation}} {{name}}!"> </div>'); 13 var element = _.compile('<div ng-bind-template="{{salutation}} {{name}}!"> </div>');
14 scope.context['salutation'] = 'Hello'; 14 scope.context['salutation'] = 'Hello';
15 scope.context['name'] = 'Heisenberg'; 15 scope.context['name'] = 'Heisenberg';
16 scope.apply(); 16 scope.apply();
17 17
18 expect(element.text).toEqual('Hello Heisenberg!'); 18 expect(element.text).toEqual('Hello Heisenberg!');
19 19
20 scope.context['salutation'] = 'Good-Bye'; 20 scope.context['salutation'] = 'Good-Bye';
21 scope.apply(); 21 scope.apply();
22 22
23 expect(element.text).toEqual('Good-Bye Heisenberg!'); 23 expect(element.text).toEqual('Good-Bye Heisenberg!');
24 })); 24 });
25 }); 25 });
26 } 26 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/test/directive/ng_bind_spec.dart ('k') | third_party/pkg/angular/test/directive/ng_class_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698