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

Unified Diff: third_party/pkg/angular/test/directive/ng_template_spec.dart

Issue 180873006: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 6 years, 10 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
Index: third_party/pkg/angular/test/directive/ng_template_spec.dart
diff --git a/third_party/pkg/angular/test/directive/ng_template_spec.dart b/third_party/pkg/angular/test/directive/ng_template_spec.dart
index 0dccfd3a954efc54c38ed15ad67e5855417c5d5c..4f39f9c69d6136d349482e03080a0fdc820bc191 100644
--- a/third_party/pkg/angular/test/directive/ng_template_spec.dart
+++ b/third_party/pkg/angular/test/directive/ng_template_spec.dart
@@ -31,8 +31,8 @@ main() {
'<script id="/ignore">ignore me</script>' +
'<script type="text/ng-template" id="/myTemplate.html"><x>{{y}}</x></script>' +
'</div>'],
- (Injector injector, Compiler compiler, TemplateCache templateCache) {
- compiler(element)(injector, element);
+ (Injector injector, Compiler compiler, TemplateCache templateCache, DirectiveMap directives) {
+ compiler(element, directives)(injector, element);
expect(templateCache.get('/ignore')).toBeNull();
expect(templateCache.get('/myTemplate.html').responseText).toEqual('<x>{{y}}</x>');
}
@@ -49,9 +49,9 @@ main() {
'<script type="text/javascript">some {{binding}} <div></div></script>' +
'<script type="text/ng-template" id="/some">other {{binding}} <div></div></script>' +
'</div>'],
- (Injector injector, Compiler compiler, TemplateCache templateCache, Scope scope) {
+ (Injector injector, Compiler compiler, TemplateCache templateCache, Scope scope, DirectiveMap directives) {
var templates = element.contents();
- compiler(element)(injector, element);
+ compiler(element, directives)(injector, element);
microLeap();
// This binding should have been left alone (i.e. not interpolated).
« no previous file with comments | « third_party/pkg/angular/test/directive/ng_switch_spec.dart ('k') | third_party/pkg/angular/test/filter/date_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698