summaryrefslogtreecommitdiffstats
path: root/tools/qtestlib/chart
diff options
context:
space:
mode:
authorMorten Sørvig <msorvig@trolltech.com>2009-05-15 09:39:15 (GMT)
committerMorten Sørvig <msorvig@trolltech.com>2009-05-15 09:39:15 (GMT)
commit7c40487dce7c11c93444dc3c74fce84b09901d33 (patch)
treee183d39cd4ead1423369db1b9cdd7da9b9ea04a9 /tools/qtestlib/chart
parentac98ab496ecfba9493e93f0e0323822a1c9ed2d6 (diff)
downloadQt-7c40487dce7c11c93444dc3c74fce84b09901d33.zip
Qt-7c40487dce7c11c93444dc3c74fce84b09901d33.tar.gz
Qt-7c40487dce7c11c93444dc3c74fce84b09901d33.tar.bz2
Make the charts work on internet explorer (tested on IE8)
Diffstat (limited to 'tools/qtestlib/chart')
-rw-r--r--tools/qtestlib/chart/benchmark_template.html16
-rw-r--r--tools/qtestlib/chart/reportgenerator.cpp3
2 files changed, 14 insertions, 5 deletions
diff --git a/tools/qtestlib/chart/benchmark_template.html b/tools/qtestlib/chart/benchmark_template.html
index 11efd92..a7e48be 100644
--- a/tools/qtestlib/chart/benchmark_template.html
+++ b/tools/qtestlib/chart/benchmark_template.html
@@ -108,15 +108,25 @@ function checkform()
this.createChart();
}
+function createElement(nodeName, name) {
+ var node;
+ try {
+ node = document.createElement("<"+nodeName+" name="+name+">");
+ } catch (e) {
+ node = document.createElement(nodeName);
+ node.name = name;
+ }
+ return node;
+}
+
function createFormSelector(form, value, text, type)
{
- var selector = document.createElement('input');
- form.appendChild(selector);
+ var selector = createElement('input', 'list');
selector.type = type;
- selector.name = 'list';
selector.defaultChecked = true;
selector.value = value;
+ form.appendChild(selector);
form.appendChild(document.createTextNode(text));
form.appendChild(document.createElement("BR"));
}
diff --git a/tools/qtestlib/chart/reportgenerator.cpp b/tools/qtestlib/chart/reportgenerator.cpp
index bf5bf94..94661ba 100644
--- a/tools/qtestlib/chart/reportgenerator.cpp
+++ b/tools/qtestlib/chart/reportgenerator.cpp
@@ -253,7 +253,7 @@ QByteArray printSeriesLabels(const QString &tableName, const QString &seriesColu
output += "[";
foreach(const QString &serie, series) {
- output += "\"" + serie.toLocal8Bit() + "\", ";
+ output += "\"" + serie.toLocal8Bit() + "\",";
}
output.chop(1); //remove last comma
output += "]\n";
@@ -446,7 +446,6 @@ void ReportGenerator::writeReports()
}
*/
writeReport("Results", "results.html", false);
- qDebug() << "Supported browsers: Firefox, Safari, Opera, Qt Demo Browser (IE and KDE 3 Konqueror are not supported)";
}
QString ReportGenerator::fileName()