You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2019/11/01 08:14:13 UTC

[incubator-echarts] branch visual-test-report updated: test(visual): optimize generated report

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch visual-test-report
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/visual-test-report by this push:
     new e2a3412  test(visual): optimize generated report
e2a3412 is described below

commit e2a34129381da6f7c00f7f3064a9a3fe497f94e6
Author: Yi Shen <bm...@gmail.com>
AuthorDate: Fri Nov 1 16:14:02 2019 +0800

    test(visual): optimize generated report
---
 test/runTest/genReport.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/runTest/genReport.js b/test/runTest/genReport.js
index eacccad..762d206 100644
--- a/test/runTest/genReport.js
+++ b/test/runTest/genReport.js
@@ -77,9 +77,9 @@ async function genDetail(test) {
         }
 
         let [expectedUrl, actualUrl, diffUrl] = await Promise.all([
-            inlineImage(shot.expected),
-            inlineImage(shot.actual),
-            inlineImage(shot.diff)
+            resolveImagePath(shot.expected),
+            resolveImagePath(shot.actual),
+            resolveImagePath(shot.diff)
         ]);
         shotDetail += `
 <div style="margin-top:10px">
@@ -130,6 +130,7 @@ async function run() {
 <a id="${test.name}"></a>
 
 ## ${title}
+
 ${detail.content}
     `;
 
@@ -159,4 +160,4 @@ ${detail.content}
     // });
 }
 
-run();
\ No newline at end of file
+run();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org