From 1e1e40c75f55de0f545b54e250abe19552b47a34 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 17 Jan 2017 18:40:46 +0800 Subject: [PATCH] Dump the page's content as well on failure. --- spec/phantom_js/smoke_test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/phantom_js/smoke_test.js b/spec/phantom_js/smoke_test.js index 6cac5534f5c..1d43de145e8 100644 --- a/spec/phantom_js/smoke_test.js +++ b/spec/phantom_js/smoke_test.js @@ -46,6 +46,7 @@ page.waitFor = function(desc, fn, cb) { if (diff > TIMEOUT) { console.log("FAILED: " + desc + " - " + diff + "ms"); page.render('/tmp/failed.png'); + console.log('Content:' + page.content); cb(false); } else { setTimeout(check, 25);