74249687
Luigi Serra
Cross browser con...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/**
* The MIT License (MIT)
* Copyright (c) 2015 ember-cli
*
* see: https://github.com/ember-cli/ember-cli-qunit/blob/b46c5e7d1abfeadfd0309e6c4b4082ebe3b58896/vendor/ember-cli-qunit/qunit-configuration.js
*/
QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container'});
QUnit.config.urlConfig.push({ id: 'dockcontainer', label: 'Dock container'});
QUnit.config.testTimeout = 60000; //Default Test Timeout 60 Seconds
function setupTestingContainer() {
var testContainer = document.getElementById('materialize-testing-container');
var containerVisibility = QUnit.urlParams.nocontainer ? 'hidden' : 'visible';
var containerPosition = QUnit.urlParams.dockcontainer ? 'absolute' : 'relative';
testContainer.style.visibility = containerVisibility;
testContainer.style.position = containerPosition;
}
QUnit.begin(function() {
setupTestingContainer();
});
QUnit.moduleDone(function () {
document.getElementById('materialize-testing-container').innerHTML = '';
});
|