summaryrefslogtreecommitdiffstats
path: root/tests/arthur
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2010-11-03 15:18:02 (GMT)
committeraavit <qt-info@nokia.com>2010-11-03 15:18:02 (GMT)
commita84181407f51cc855a6ddb2033a7aa6738354602 (patch)
tree002ee42fde0a061825b0b0d12d2290ee1abdf732 /tests/arthur
parent6aec74aba05e4288c64860e7fa698ec1ae7939dc (diff)
downloadQt-a84181407f51cc855a6ddb2033a7aa6738354602.zip
Qt-a84181407f51cc855a6ddb2033a7aa6738354602.tar.gz
Qt-a84181407f51cc855a6ddb2033a7aa6738354602.tar.bz2
Hide nonfunctional links, and improve html
Diffstat (limited to 'tests/arthur')
-rw-r--r--tests/arthur/baselineserver/src/htmlpage.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/arthur/baselineserver/src/htmlpage.cpp b/tests/arthur/baselineserver/src/htmlpage.cpp
index 6b965b4..00d07f1 100644
--- a/tests/arthur/baselineserver/src/htmlpage.cpp
+++ b/tests/arthur/baselineserver/src/htmlpage.cpp
@@ -92,10 +92,12 @@ void HTMLPage::writeHeader(const ImageItem &item)
out << "<h3>Host: " << plat.hostName << " [" << address << "] OS: " << plat.osName << " [enum: " << plat.osVersion << "]</h3>\n";
out << "<h3>Qt version: " << plat.qtVersion << " [commit: " << plat.gitCommit << "] Build key: \"" << plat.buildKey << "\"</h3>\n";
out << "<h3>Engine: " << item.engineAsString() << " Format: " << item.formatAsString() << "</h3>\n\n";
+#if 0
out << "<h3><a href=\"/cgi-bin/server.cgi?cmd=updateAllBaselines&id="<< id << "&host=" << plat.hostName
<< "&engine=" << item.engineAsString() << "&format=" << item.formatAsString()
<< "&url=" << pageUrl
<< "\">Update all baselines</a><br>";
+#endif
out << "<table border=\"2\">\n"
"<tr>\n"
"<td><b>Script</b></td>\n"
@@ -129,11 +131,14 @@ void HTMLPage::addItem(const QString &baseline, const QString &rendered, const I
out << "<td><a href=\"/" << img << "\"><img src=\"/" << img << "\" width=240 height=240></a></td>\n";
out << "<td><a href=\"/cgi-bin/server.cgi?cmd=updateSingleBaseline&oldBaseline=" << baseline
<< "&newBaseline=" << rendered << "&url=" << pageUrl << "\">Update baseline</a><br>"
+#if 0
"<a href=\"/cgi-bin/server.cgi?cmd=blacklist&scriptName=" << item.scriptName
<< "&host=" << plat.hostName << "&engine=" << item.engineAsString()
<< "&format=" << item.formatAsString()
- << "&url=" << pageUrl << "\">Blacklist test</a></td>\n";
- out << "<tr>\n\n";
+ << "&url=" << pageUrl << "\">Blacklist test</a>"
+#endif
+ << "</td>\n";
+ out << "</tr>\n\n";
QMutableVectorIterator<ImageItem> it(imageItems);
while (it.hasNext()) {
@@ -164,7 +169,7 @@ void HTMLPage::end()
} else {
out << "<span style=\"color:green\">Test passed</span>";
}
- out << "</td><tr>";
+ out << "</td></tr>\n";
}
writeFooter();