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);
}); });
if (DOM.supportsNativeShadowDOM()) {
it('should use the native shadow root', () => { it('should use the native shadow root', () => {
var host = el('<div><span>original content</span></div>'); var host = el('<div><span>original content</span></div>');
expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host)); 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>');