From b7c0ac7d67cc921b48fe83d1acf6dc40fb074fdc Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 6 Sep 2012 00:40:26 -0700 Subject: [PATCH] Tweak test/test-ui.js for QUnit v1.10.0. Former-commit-id: 6481cce305fb4d69bba22ba2186a30ee13bb2282 --- test/test-ui.js | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/test/test-ui.js b/test/test-ui.js index 5b8ee929b..b91a91f69 100644 --- a/test/test-ui.js +++ b/test/test-ui.js @@ -47,8 +47,8 @@ function init() { var toolbar = document.getElementById('qunit-testrunner-toolbar'); if (toolbar) { - toolbar.appendChild(label1); - toolbar.appendChild(label2); + toolbar.appendChild(span1); + toolbar.appendChild(span2); dropdown.selectedIndex = (function() { switch (build) { @@ -68,21 +68,24 @@ } } - var label1 = document.createElement('label'); - label1.innerHTML = - 'No RequireJS'; + var span1 = document.createElement('span'); + span1.innerHTML = + '' + + ''; - var label2 = document.createElement('label'); - label2.innerHTML = ' ' + - '' + '' + '' + '' + '' + - ' Build'; + ''; - var checkbox = label1.firstChild, - dropdown = label2.getElementsByTagName('select')[0]; + var checkbox = span1.firstChild, + dropdown = span2.lastChild; init(); });