Tweak test/test-ui.js for QUnit v1.10.0.

Former-commit-id: 6481cce305fb4d69bba22ba2186a30ee13bb2282
This commit is contained in:
John-David Dalton
2012-09-06 00:40:26 -07:00
parent 13b1fc6b44
commit b7c0ac7d67

View File

@@ -47,8 +47,8 @@
function init() { function init() {
var toolbar = document.getElementById('qunit-testrunner-toolbar'); var toolbar = document.getElementById('qunit-testrunner-toolbar');
if (toolbar) { if (toolbar) {
toolbar.appendChild(label1); toolbar.appendChild(span1);
toolbar.appendChild(label2); toolbar.appendChild(span2);
dropdown.selectedIndex = (function() { dropdown.selectedIndex = (function() {
switch (build) { switch (build) {
@@ -68,21 +68,24 @@
} }
} }
var label1 = document.createElement('label'); var span1 = document.createElement('span');
label1.innerHTML = span1.innerHTML =
'<input name="norequire" type="checkbox">No RequireJS'; '<input id="qunit-norequire" type="checkbox">' +
'<label for="qunit-norequire">No RequireJS</label>';
var label2 = document.createElement('label'); var span2 = document.createElement('span');
label2.innerHTML = '&nbsp;' + span2.style.cssText = 'float:right';
'<select name="build">' + span2.innerHTML =
'<label for="qunit-build">Build: </label>' +
'<select id="qunit-build">' +
'<option value="dev">Developement</option>' + '<option value="dev">Developement</option>' +
'<option value="prod">Production</option>' + '<option value="prod">Production</option>' +
'<option value="custom">Custom</option>' + '<option value="custom">Custom</option>' +
'<option value="custom-debug">Custom (debug)</option>' + '<option value="custom-debug">Custom (debug)</option>' +
'</select> Build'; '</select>';
var checkbox = label1.firstChild, var checkbox = span1.firstChild,
dropdown = label2.getElementsByTagName('select')[0]; dropdown = span2.lastChild;
init(); init();
}); });