|
1 | | -import {describe, beforeEach, it, expect, ddescribe, iit, SpyObject, el, IS_NODEJS} from 'angular2/test_lib'; |
| 1 | +import {describe, beforeEach, it, expect, ddescribe, iit, SpyObject, el} from 'angular2/test_lib'; |
2 | 2 | import {ShadowCss} from 'angular2/src/core/compiler/shadow_dom_emulation/shadow_css'; |
3 | 3 |
|
4 | 4 | import {RegExpWrapper, StringWrapper} from 'angular2/src/facade/lang'; |
@@ -91,16 +91,13 @@ export function main() { |
91 | 91 | expect(StringWrapper.contains(css, '#menu > .bar {;background: blue;}')).toBeTruthy(); |
92 | 92 | }); |
93 | 93 |
|
94 | | - if (!IS_NODEJS) { |
95 | | - //TODO: reactivate once CSS parser is fixed: https://github.com/reworkcss/css/issues/65 |
96 | | - it('should support polyfill-rule', () => { |
97 | | - var css = s("polyfill-rule {content: ':host.foo .bar';background: blue;}", 'a', 'a-host'); |
98 | | - expect(css).toEqual('[a-host].foo .bar {background: blue;}'); |
| 94 | + 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;}'); |
99 | 97 |
|
100 | | - css = s('polyfill-rule {content: ":host.foo .bar";background: blue;}', 'a', 'a-host'); |
101 | | - expect(css).toEqual('[a-host].foo .bar {background: blue;}'); |
102 | | - }); |
103 | | - } |
| 98 | + css = s('polyfill-rule {content: ":host.foo .bar";background: blue;}', 'a', 'a-host'); |
| 99 | + expect(css).toEqual('[a-host].foo .bar {background: blue;}'); |
| 100 | + }); |
104 | 101 |
|
105 | 102 | it('should handle ::shadow', () => { |
106 | 103 | var css = s('x::shadow > y {}', 'a'); |
|
0 commit comments