From c4f33ac9f27ef29ae7880b181147674e8376df09 Mon Sep 17 00:00:00 2001 From: Gunes Acar Date: Thu, 15 Dec 2016 16:43:38 +0100 Subject: [PATCH] Don't use the system Firefox binary in the manual tests. Log table name for DB inserts to terminal. Update terminal colors used in the manual test to be more readable. Switch to test directory before starting the web server. Regenerate openwpm.xpi. --- automation/Extension/firefox/lib/loggingdb.js | 8 ++++-- automation/Extension/firefox/openwpm.xpi | Bin 26562 -> 26634 bytes test/manual_test.py | 26 ++++++++++++++---- test/utilities.py | 3 ++ 4 files changed, 28 insertions(+), 9 deletions(-) diff --git a/automation/Extension/firefox/lib/loggingdb.js b/automation/Extension/firefox/lib/loggingdb.js index 42bde568..08ab47d3 100644 --- a/automation/Extension/firefox/lib/loggingdb.js +++ b/automation/Extension/firefox/lib/loggingdb.js @@ -57,10 +57,12 @@ exports.executeSQL = function(statement, async) { // send to console if debugging // TODO remove async argument if (debugging) { - if (typeof statement == 'string') + if (typeof statement == 'string'){ console.log("SQLite",statement); - else - console.log("SQLite",statement[1]); + }else{ // log the table name and values to be inserted + var table_name = statement[0].replace("INSERT INTO ", "").split(" ")[0]; + console.log("SQLite", table_name, statement[1]); + } return; } // catch statements without arguments diff --git a/automation/Extension/firefox/openwpm.xpi b/automation/Extension/firefox/openwpm.xpi index 7ab456295438d57f60f331ac667115bbecd169d1..e6ef7075aa9d76a017c2673faa7f1c3ef7e90157 100644 GIT binary patch delta 2342 zcmZ8j3p`Y58y~|kE0U>XoH2$p>lQVZWL;`pCNxPx!?+A)1|d8ER8MjEW zh>$LFO;{?steD1(s13Q)CQG^OndAGu{q+8R@A*H^^ZuX9Iq&;>-qZSABBfVC{;-3j zlq^C#(o)ki-nd&V1B-#7(krVxEQPdu$B~K%~|YL z30Qau;9&ujLG{B1A?oU8SolfBc5S6abwX?aEAYiIF5y~X!cjF291QH$Ai{=4jg__N z)uzvpu!XPFuK)|5iNlieP!PN12z~_~g+PeFG;=JMdg7(YrblnxcA52)G&(0jG6?7g z)N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