Skip to content

Commit

Permalink
updated the tests to adjust the coords of the text runs
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Jun 10, 2009
1 parent dccaf32 commit 4901873
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mainwindow.cpp
Expand Up @@ -418,6 +418,7 @@ void MainWindow::hunterFinished(int exitCode, QProcess::ExitStatus) {
return;
}
QString json = QString::fromUtf8(file.readAll());
//qDebug() << "RAW JSON: " << json << endl;
file.close();
if (json.isEmpty()) {
QMessageBox::warning(this, tr("Hunter Result File Loader"),
Expand All @@ -438,7 +439,7 @@ void MainWindow::hunterFinished(int exitCode, QProcess::ExitStatus) {
QMessageBox::NoButton);
return;
}
//qDebug() << res << endl;
//qDebug() << "Res: " << res << endl;
if (!res.canConvert<QVariantMap>()) {
QMessageBox::warning(this, tr("Hunter Result File Loader"),
QString("Result file %1 does not contain a JSON object.")
Expand Down Expand Up @@ -573,6 +574,7 @@ void MainWindow::annotateWebPage(QVariantList& groups) {
.arg(m_webvdom->dumpStrAsJson(
titleVar.toString()))
.arg(i);
//qDebug() << "JSON: " << js << endl;
js += QString("box.addEventListener('mouseout',"
"function (e) {"
"nodes = document.getElementsByClassName('vdom-group-%1');"
Expand All @@ -584,7 +586,7 @@ void MainWindow::annotateWebPage(QVariantList& groups) {
"true);").arg(i);
//qDebug() << js << endl;
}
// qDebug() << i << ":" << j << ": " << js << endl;
//qDebug() << i << ":" << j << ": " << js << endl;
QVariant res = evalJS(js + "true");
//if (!res.isNull()) {
//qDebug() << "res: " << res << endl;
Expand Down

0 comments on commit 4901873

Please sign in to comment.