Skip to content

Commit 588fbfd

Browse files
committed
fix(test): use a not expandable CSS rule in ShadowCSS spec (Firefox)
Closes angular#2061
1 parent b2a24e0 commit 588fbfd

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

modules/angular2/test/render/dom/shadow_dom/shadow_css_spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ export function main() {
8484
});
8585

8686
it('should support polyfill-unscoped-rule', () => {
87-
var css = s("polyfill-unscoped-rule {content: '#menu > .bar';background: blue;}", 'a');
88-
expect(StringWrapper.contains(css, '#menu > .bar {;background: blue;}')).toBeTruthy();
87+
var css = s("polyfill-unscoped-rule {content: '#menu > .bar';color: blue;}", 'a');
88+
expect(StringWrapper.contains(css, '#menu > .bar {;color: blue;}')).toBeTruthy();
8989

90-
css = s('polyfill-unscoped-rule {content: "#menu > .bar";background: blue;}', 'a');
91-
expect(StringWrapper.contains(css, '#menu > .bar {;background: blue;}')).toBeTruthy();
90+
css = s('polyfill-unscoped-rule {content: "#menu > .bar";color: blue;}', 'a');
91+
expect(StringWrapper.contains(css, '#menu > .bar {;color: blue;}')).toBeTruthy();
9292
});
9393

9494
it('should support polyfill-rule', () => {
95-
var css = s("polyfill-rule {content: ':host.foo .bar';background: blue;}", 'a', 'a-host');
96-
expect(css).toEqual('[a-host].foo .bar {background: blue;}');
95+
var css = s("polyfill-rule {content: ':host.foo .bar';color: blue;}", 'a', 'a-host');
96+
expect(css).toEqual('[a-host].foo .bar {color: blue;}');
9797

98-
css = s('polyfill-rule {content: ":host.foo .bar";background: blue;}', 'a', 'a-host');
99-
expect(css).toEqual('[a-host].foo .bar {background: blue;}');
98+
css = s('polyfill-rule {content: ":host.foo .bar";color: blue;}', 'a', 'a-host');
99+
expect(css).toEqual('[a-host].foo .bar {color: blue;}');
100100
});
101101

102102
it('should handle ::shadow', () => {

0 commit comments

Comments
 (0)