mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
only run shadow dom test if brower supports shadow dom
This commit is contained in:
parent
daa387f4b7
commit
ab33cd502e
@ -46,6 +46,7 @@
|
||||
|
||||
// ----------
|
||||
QUnit.test('shadow dom', function(assert) {
|
||||
if (document.head && document.head.attachShadow) {
|
||||
var done = assert.async();
|
||||
|
||||
var shadowDiv = document.createElement('div');
|
||||
@ -68,6 +69,9 @@
|
||||
|
||||
assert.ok(viewer.referenceStrip, 'referenceStrip exists');
|
||||
done();
|
||||
} else {
|
||||
assert.expect(0);
|
||||
}
|
||||
})
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user