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

Unified Diff: third_party/pkg/angular/test/core_dom/shadow_root_options_spec.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/core_dom/shadow_root_options_spec.dart
diff --git a/third_party/pkg/angular/test/core_dom/shadow_root_options_spec.dart b/third_party/pkg/angular/test/core_dom/shadow_root_options_spec.dart
index 8b1a0227c5f6767706a9be885fdcdc41bc42dad5..9cfa4026103280f5baac9128340f639413f0f858 100644
--- a/third_party/pkg/angular/test/core_dom/shadow_root_options_spec.dart
+++ b/third_party/pkg/angular/test/core_dom/shadow_root_options_spec.dart
@@ -41,6 +41,7 @@ class DefaultOptionsComponent {
main() {
describe('shadow dom options', () {
Compiler $compile;
+ DirectiveMap directives;
Injector injector;
Scope $rootScope;
@@ -53,6 +54,7 @@ main() {
injector = _injector;
$compile = injector.get(Compiler);
$rootScope = injector.get(Scope);
+ directives = injector.get(DirectiveMap);
};
}));
@@ -62,7 +64,7 @@ main() {
'<apply-author-style>not included</apply-author-style>' +
'<default-options>not included</default-options>');
element.forEach((elt) { document.body.append(elt); }); // we need the computed style.
- $compile(element)(injector, element);
+ $compile(element, directives)(injector, element);
microLeap();
expect(element[1].shadowRoot.query('div').getComputedStyle().border).toContain('3px solid');
@@ -76,7 +78,7 @@ main() {
'<reset-style-inheritance>not included</reset-style-inheritance>' +
'<default-options>not included</default-options>');
element.forEach((elt) { document.body.append(elt); }); // we need the computed style.
- $compile(element)(injector, element);
+ $compile(element, directives)(injector, element);
microLeap();
expect(element[1].shadowRoot.query('div').getComputedStyle().fontSize).toEqual('16px');

Powered by Google App Engine
This is Rietveld 408576698