| 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');
|
|
|