From 490187360014c960c7be74d8dab2e55be843acbc Mon Sep 17 00:00:00 2001 From: agentzh Date: Wed, 10 Jun 2009 07:56:02 +0000 Subject: [PATCH] updated the tests to adjust the coords of the text runs git-svn-id: http://svn1.bj.corp.yahoo.com/repos/WebEng/lifesearch/vdom-webkit/VdomBrowser@60325 82b2e94c-9313-0410-8ced-81db5252d7f6 --- mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5d993fd..03831d7 100644 --- a/mainwindow.cpp +++ b/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()) { 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;