fix(test): use a not expandable CSS rule in ShadowCSS spec (Firefox)

Closes #2061
This commit is contained in:
Marc Laval 2015-05-21 17:12:10 +02:00
parent b2a24e021f
commit 588fbfd848
1 changed files with 8 additions and 8 deletions

View File

@ -84,19 +84,19 @@ export function main() {
}); });
it('should support polyfill-unscoped-rule', () => { it('should support polyfill-unscoped-rule', () => {
var css = s("polyfill-unscoped-rule {content: '#menu > .bar';background: blue;}", 'a'); var css = s("polyfill-unscoped-rule {content: '#menu > .bar';color: blue;}", 'a');
expect(StringWrapper.contains(css, '#menu > .bar {;background: blue;}')).toBeTruthy(); expect(StringWrapper.contains(css, '#menu > .bar {;color: blue;}')).toBeTruthy();
css = s('polyfill-unscoped-rule {content: "#menu > .bar";background: blue;}', 'a'); css = s('polyfill-unscoped-rule {content: "#menu > .bar";color: blue;}', 'a');
expect(StringWrapper.contains(css, '#menu > .bar {;background: blue;}')).toBeTruthy(); expect(StringWrapper.contains(css, '#menu > .bar {;color: blue;}')).toBeTruthy();
}); });
it('should support polyfill-rule', () => { it('should support polyfill-rule', () => {
var css = s("polyfill-rule {content: ':host.foo .bar';background: blue;}", 'a', 'a-host'); var css = s("polyfill-rule {content: ':host.foo .bar';color: blue;}", 'a', 'a-host');
expect(css).toEqual('[a-host].foo .bar {background: blue;}'); expect(css).toEqual('[a-host].foo .bar {color: blue;}');
css = s('polyfill-rule {content: ":host.foo .bar";background: blue;}', 'a', 'a-host'); css = s('polyfill-rule {content: ":host.foo .bar";color: blue;}', 'a', 'a-host');
expect(css).toEqual('[a-host].foo .bar {background: blue;}'); expect(css).toEqual('[a-host].foo .bar {color: blue;}');
}); });
it('should handle ::shadow', () => { it('should handle ::shadow', () => {