only run shadow dom test if brower supports shadow dom

This commit is contained in:
David McAlpine 2019-07-19 16:20:55 -04:00
parent daa387f4b7
commit ab33cd502e

View File

@ -46,6 +46,7 @@
// ---------- // ----------
QUnit.test('shadow dom', function(assert) { QUnit.test('shadow dom', function(assert) {
if (document.head && document.head.attachShadow) {
var done = assert.async(); var done = assert.async();
var shadowDiv = document.createElement('div'); var shadowDiv = document.createElement('div');
@ -68,6 +69,9 @@
assert.ok(viewer.referenceStrip, 'referenceStrip exists'); assert.ok(viewer.referenceStrip, 'referenceStrip exists');
done(); done();
} else {
assert.expect(0);
}
}) })
})(); })();