fix(test): native shadow DOM is required (IE11, Firefox)

This commit is contained in:
Marc Laval 2015-05-21 11:35:53 +02:00
parent 2287938f5a
commit 9802debf71
1 changed files with 6 additions and 4 deletions

View File

@ -30,10 +30,12 @@ export function main() {
strategy = new NativeShadowDomStrategy(styleUrlResolver); strategy = new NativeShadowDomStrategy(styleUrlResolver);
}); });
it('should use the native shadow root', () => { if (DOM.supportsNativeShadowDOM()) {
var host = el('<div><span>original content</span></div>'); it('should use the native shadow root', () => {
expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host)); var host = el('<div><span>original content</span></div>');
}); expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host));
});
}
it('should rewrite style urls', () => { it('should rewrite style urls', () => {
var styleElement = el('<style>.foo {background-image: url("img.jpg");}</style>'); var styleElement = el('<style>.foo {background-image: url("img.jpg");}</style>');