Index: LayoutTests/fast/harness/archived-results-dashboard.html |
diff --git a/LayoutTests/fast/harness/archived-results-dashboard.html b/LayoutTests/fast/harness/archived-results-dashboard.html |
index af1e6b4582594cff19da6aba2be868e184e677ee..e8a4455b26ca46d43b5d08f4bb9df633f8354bf0 100644 |
--- a/LayoutTests/fast/harness/archived-results-dashboard.html |
+++ b/LayoutTests/fast/harness/archived-results-dashboard.html |
@@ -122,13 +122,14 @@ function getTests() |
{ |
var table = document.getElementById('results-table'); |
var testCount = table.rows.length; |
- //FIXME : CONVERT TO JSON |
- var tests_list = ''; |
+ var tests_list = { |
+ tests : [] |
+ }; |
for(var i = 1; i < testCount; i++) { |
var selected = table.rows[i].cells[0].getElementsByTagName("input")[0]; |
if(selected.checked) { |
var test = table.rows[i].cells[1].innerHTML; |
- tests_list += test + ' ' ; |
+ tests_list.tests.push(test); |
} |
} |
return tests_list; |
@@ -152,7 +153,7 @@ function rerun() |
if(xmlhttp.readyState > 0) |
document.body.innerHTML = xmlhttp.responseText; |
} |
- xmlhttp.send(String(getTests())); |
+ xmlhttp.send(JSON.stringify(getTests())); |
} |
} |
function checkalltests() |