mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
13 lines
449 B
JavaScript
13 lines
449 B
JavaScript
import resolver from './helpers/resolver';
|
|
import {
|
|
setResolver
|
|
} from 'ember-qunit';
|
|
|
|
setResolver(resolver);
|
|
|
|
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
|
|
|
|
QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container'});
|
|
var containerVisibility = QUnit.urlParams.nocontainer ? 'hidden' : 'visible';
|
|
document.getElementById('ember-testing-container').style.visibility = containerVisibility;
|