framework/ember/tests/test-helper.js

13 lines
449 B
JavaScript
Raw Normal View History

2014-12-20 14:26:46 +08:00
import resolver from './helpers/resolver';
import {
setResolver
} from 'ember-qunit';
2014-12-20 14:26:46 +08:00
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;