Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated the tests to adjust the coords of the text runs

  • Loading branch information...
commit 490187360014c960c7be74d8dab2e55be843acbc 1 parent dccaf32
agentzh authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mainwindow.cpp
View
6 mainwindow.cpp
@@ -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"),
@@ -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.")
@@ -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');"
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.