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/10/28 11:54:37 UTC

[incubator-echarts] 01/01: test(visual): sort actoins meta data by key.

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

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

commit 10fdf1c37633f04ae10bdb644f216460ea21a430
Author: pissang <bm...@gmail.com>
AuthorDate: Mon Oct 28 19:54:02 2019 +0800

    test(visual): sort actoins meta data by key.
---
 test/runTest/actions/__meta__.json | 58 +++++++++++++++++++-------------------
 test/runTest/actions/update.js     |  4 ++-
 test/runTest/store.js              |  5 +++-
 3 files changed, 36 insertions(+), 31 deletions(-)

diff --git a/test/runTest/actions/__meta__.json b/test/runTest/actions/__meta__.json
index ddb8dec..6851623 100644
--- a/test/runTest/actions/__meta__.json
+++ b/test/runTest/actions/__meta__.json
@@ -6,80 +6,86 @@
   "area2": 1,
   "aria-line-bar": 1,
   "aria-pie": 1,
+  "axes": 0,
+  "axis": 1,
   "axis-boundaryGap": 1,
   "axis-lastLabel": 5,
   "axis-multiple": 1,
   "axis-style": 2,
-  "map-parallel": 1,
-  "map": 3,
-  "treemap-disk": 3,
-  "axis": 1,
   "axisPosition": 2,
+  "bar": 2,
   "bar-label-rotation": 2,
   "bar-large": 2,
   "bar-overflow-time-plot": 3,
-  "bar-polar-multi-series-radial": 1,
   "bar-polar-multi-series": 1,
+  "bar-polar-multi-series-radial": 1,
   "bar-polar-null-data-radial": 1,
   "bar-polar-stack": 1,
   "bar-stack": 1,
   "bar-start": 1,
-  "bar": 2,
   "bar3": 1,
   "bmap": 1,
-  "boxplot-multi": 1,
   "boxplot": 1,
+  "boxplot-multi": 1,
   "brush": 7,
   "brush2": 3,
   "brush3": 2,
   "calendar-converter": 1,
   "calendar-heatmap": 1,
   "calendar-month": 2,
+  "candlestick": 2,
   "candlestick-empty": 1,
   "candlestick-large": 4,
   "candlestick-large2": 1,
-  "candlestick": 2,
   "candlestickConnect": 4,
+  "clip": 9,
   "color-mix-aqi": 1,
+  "connect": 1,
   "connect-dynamic": 2,
   "connect-manually": 1,
-  "connect": 1,
   "connect2": 1,
   "css-transform": 4,
+  "custom": 5,
   "custom-children-remove": 1,
   "custom-hexbin": 1,
-  "custom": 5,
   "dataZoom-action": 4,
   "dataZoom-axes": 4,
   "dataZoom-axis-type": 3,
   "dataZoom-clip": 3,
   "dataZoom-extreme": 1,
+  "dataZoom-rainfall": 1,
   "dataZoom-rainfall-connect": 1,
   "dataZoom-rainfall-inside": 1,
-  "dataZoom-rainfall": 1,
   "dataZoom-scatter-category": 2,
-  "dataZoom-scatter-hv-polar": 3,
   "dataZoom-scatter-hv": 1,
+  "dataZoom-scatter-hv-polar": 3,
+  "dataZoom-scroll": 3,
   "dataZoom-sync": 1,
   "dataZoom-toolbox": 6,
   "dataZoomHighPrecision": 3,
   "dynamic-splitNumber": 1,
   "ec-event": 4,
   "funnel": 2,
+  "gauge-simple": 2,
   "geo-map": 3,
   "geoScatter": 1,
   "getOption": 1,
+  "graph": 2,
   "graph-grid": 1,
   "graph-simple": 2,
-  "graph": 2,
-  "heatmap-map": 1,
   "heatmap": 1,
+  "heatmap-map": 1,
   "homepage3": 1,
   "hoverStyle": 12,
   "label-position": 1,
   "largeLine-tooltip": 1,
   "legend": 6,
   "line-animation": 1,
+  "map": 3,
+  "map-contour": 2,
+  "map-default": 1,
+  "map-labels": 1,
+  "map-parallel": 1,
   "map-province": 1,
   "mapWorld": 1,
   "markArea": 1,
@@ -90,21 +96,23 @@
   "parallel-aqi": 1,
   "parallel-nutrients": 1,
   "pictorial-repeat": 5,
+  "pie": 1,
   "pie-action": 1,
   "pie-calculable": 1,
-  "pie": 1,
+  "polar-rounded": 2,
   "polarLine": 1,
   "polarScatter": 1,
+  "radar": 1,
+  "radar2": 1,
   "radar3": 1,
   "radar4": 1,
-  "radar2": 1,
-  "radar": 1,
   "sankey-depth": 1,
   "sankey-jump": 1,
   "sankey-level": 1,
   "scatter-random-stream-fix-axis": 1,
   "scatter-single-axis": 3,
   "scatterMatrix": 3,
+  "stackBar-dataZoom": 7,
   "sunburst-book": 1,
   "sunburst-canvas": 1,
   "symbol2": 1,
@@ -112,30 +120,22 @@
   "timeScale": 1,
   "timeScale2": 1,
   "toolbox-textStyle": 1,
+  "toolbox-title": 4,
   "toolbox-tooltip": 1,
+  "tooltip": 10,
   "tooltip-axisPointer": 20,
   "tooltip-cascade": 4,
   "tooltip-event": 1,
   "tooltip-link": 2,
   "tooltip-rich": 1,
   "tooltip-setOption": 2,
-  "tooltip": 10,
   "tree-image": 1,
   "tree-legend": 1,
   "tree-radial": 1,
+  "treemap-disk": 3,
   "treemap-disk2": 2,
   "treemap-obama": 2,
   "treemap-option": 1,
   "treemap-option2": 2,
-  "visualMap-categories": 1,
-  "axes": 0,
-  "stackBar-dataZoom": 7,
-  "clip": 9,
-  "dataZoom-scroll": 3,
-  "map-contour": 2,
-  "map-default": 1,
-  "map-labels": 1,
-  "polar-rounded": 2,
-  "toolbox-title": 4,
-  "gauge-simple": 2
+  "visualMap-categories": 1
 }
\ No newline at end of file
diff --git a/test/runTest/actions/update.js b/test/runTest/actions/update.js
index b82aab6..64ca255 100644
--- a/test/runTest/actions/update.js
+++ b/test/runTest/actions/update.js
@@ -30,5 +30,7 @@ glob('*.json', (err, files) => {
         const actions = JSON.parse(fs.readFileSync(file, 'utf-8'));
         result[file.replace(/.json$/, '')] = actions.length;
     });
-    fs.writeFileSync('__meta__.json', JSON.stringify(result, null, 2), 'utf-8');
+    fs.writeFileSync('__meta__.json', JSON.stringify(
+        result, Object.keys(result).sort((a, b) => a.localeCompare(b)), 2
+    ), 'utf-8');
 });
\ No newline at end of file
diff --git a/test/runTest/store.js b/test/runTest/store.js
index 93e7856..ae8c0b2 100644
--- a/test/runTest/store.js
+++ b/test/runTest/store.js
@@ -144,5 +144,8 @@ module.exports.updateActionsMeta = function (testName, actions) {
         metaData = {};
     }
     metaData[testName] = actions.length;
-    fs.writeFileSync(metaPath, JSON.stringify(metaData, null, 2), 'utf-8');
+
+    fs.writeFileSync(metaPath, JSON.stringify(
+        metaData, Object.keys(metaData).sort((a, b) => a.localeCompare(b)), 2
+    ), 'utf-8');
 };
\ No newline at end of file


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