From 9f0993f29bbb9a0b42133153bf7449debbdb742f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 27 Jan 2014 21:49:38 -0800 Subject: [PATCH] Fix setting the selectedIndex of dropdown lists in test-ui.js and perf-ui.js. --- perf/asset/perf-ui.js | 6 +++--- test/asset/test-ui.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/perf/asset/perf-ui.js b/perf/asset/perf-ui.js index 406a2f4d2..ecb5b7ce2 100644 --- a/perf/asset/perf-ui.js +++ b/perf/asset/perf-ui.js @@ -87,6 +87,9 @@ otherList = span2.lastChild, toolbar = document.getElementById('perf-toolbar'); + toolbar.appendChild(span2); + toolbar.appendChild(span1); + buildList.selectedIndex = (function() { switch (build) { case 'lodash-compat': return 0; @@ -117,9 +120,6 @@ return -1; }()); - toolbar.appendChild(span2); - toolbar.appendChild(span1); - addListener(buildList, 'change', eventHandler); addListener(otherList, 'change', eventHandler); }); diff --git a/test/asset/test-ui.js b/test/asset/test-ui.js index 0af9c6eb0..9035acd39 100644 --- a/test/asset/test-ui.js +++ b/test/asset/test-ui.js @@ -59,6 +59,9 @@ setTimeout(init, 15); return; } + toolbar.appendChild(span1); + toolbar.appendChild(span2); + buildList.selectedIndex = (function() { switch (build) { case 'lodash-compat': return 1; @@ -86,9 +89,6 @@ return -1; }()); - toolbar.appendChild(span1); - toolbar.appendChild(span2); - addListener(buildList, 'change', eventHandler); addListener(loaderList, 'change', eventHandler); }