From 588fbfd8486f80c795b76228613646a95cd7a94a Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Thu, 21 May 2015 17:12:10 +0200 Subject: [PATCH] fix(test): use a not expandable CSS rule in ShadowCSS spec (Firefox) Closes #2061 --- .../render/dom/shadow_dom/shadow_css_spec.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/angular2/test/render/dom/shadow_dom/shadow_css_spec.js b/modules/angular2/test/render/dom/shadow_dom/shadow_css_spec.js index 0bb4c0bcd4..11b2514540 100644 --- a/modules/angular2/test/render/dom/shadow_dom/shadow_css_spec.js +++ b/modules/angular2/test/render/dom/shadow_dom/shadow_css_spec.js @@ -84,19 +84,19 @@ export function main() { }); it('should support polyfill-unscoped-rule', () => { - var css = s("polyfill-unscoped-rule {content: '#menu > .bar';background: blue;}", 'a'); - expect(StringWrapper.contains(css, '#menu > .bar {;background: blue;}')).toBeTruthy(); + var css = s("polyfill-unscoped-rule {content: '#menu > .bar';color: blue;}", 'a'); + expect(StringWrapper.contains(css, '#menu > .bar {;color: blue;}')).toBeTruthy(); - css = s('polyfill-unscoped-rule {content: "#menu > .bar";background: blue;}', 'a'); - expect(StringWrapper.contains(css, '#menu > .bar {;background: blue;}')).toBeTruthy(); + css = s('polyfill-unscoped-rule {content: "#menu > .bar";color: blue;}', 'a'); + expect(StringWrapper.contains(css, '#menu > .bar {;color: blue;}')).toBeTruthy(); }); it('should support polyfill-rule', () => { - var css = s("polyfill-rule {content: ':host.foo .bar';background: blue;}", 'a', 'a-host'); - expect(css).toEqual('[a-host].foo .bar {background: blue;}'); + var css = s("polyfill-rule {content: ':host.foo .bar';color: blue;}", 'a', 'a-host'); + expect(css).toEqual('[a-host].foo .bar {color: blue;}'); - css = s('polyfill-rule {content: ":host.foo .bar";background: blue;}', 'a', 'a-host'); - expect(css).toEqual('[a-host].foo .bar {background: blue;}'); + css = s('polyfill-rule {content: ":host.foo .bar";color: blue;}', 'a', 'a-host'); + expect(css).toEqual('[a-host].foo .bar {color: blue;}'); }); it('should handle ::shadow', () => {