g214/static/bower_components/echarts/test
xieshen 35d9133e59 init 2018-08-20 16:21:51 +08:00
..
data init 2018-08-20 16:21:51 +08:00
lib init 2018-08-20 16:21:51 +08:00
ut init 2018-08-20 16:21:51 +08:00
-primary-cases.html init 2018-08-20 16:21:51 +08:00
README.md init 2018-08-20 16:21:51 +08:00
allZero.html init 2018-08-20 16:21:51 +08:00
area.html init 2018-08-20 16:21:51 +08:00
area2.html init 2018-08-20 16:21:51 +08:00
areaLineUpdate.html init 2018-08-20 16:21:51 +08:00
axes.html init 2018-08-20 16:21:51 +08:00
axis-extrema.html init 2018-08-20 16:21:51 +08:00
axis.html init 2018-08-20 16:21:51 +08:00
bar-large.html init 2018-08-20 16:21:51 +08:00
bar.html init 2018-08-20 16:21:51 +08:00
bar2.html init 2018-08-20 16:21:51 +08:00
bar3.html init 2018-08-20 16:21:51 +08:00
bmap.html init 2018-08-20 16:21:51 +08:00
boxplot-multi.html init 2018-08-20 16:21:51 +08:00
boxplot.html init 2018-08-20 16:21:51 +08:00
brush.html init 2018-08-20 16:21:51 +08:00
brush2.html init 2018-08-20 16:21:51 +08:00
candlestick.html init 2018-08-20 16:21:51 +08:00
candlestickConnect.html init 2018-08-20 16:21:51 +08:00
chord.html init 2018-08-20 16:21:51 +08:00
color-mix-aqi.html init 2018-08-20 16:21:51 +08:00
config.js init 2018-08-20 16:21:51 +08:00
connect-manually.html init 2018-08-20 16:21:51 +08:00
connect.html init 2018-08-20 16:21:51 +08:00
connect2.html init 2018-08-20 16:21:51 +08:00
css-transform.html init 2018-08-20 16:21:51 +08:00
dataView.html init 2018-08-20 16:21:51 +08:00
dataZoom-axes.html init 2018-08-20 16:21:51 +08:00
dataZoom-axis-type.html init 2018-08-20 16:21:51 +08:00
dataZoom-cartesian-h.html init 2018-08-20 16:21:51 +08:00
dataZoom-cartesian-v.html init 2018-08-20 16:21:51 +08:00
dataZoom-dataShadow.html init 2018-08-20 16:21:51 +08:00
dataZoom-dataShadow0.html init 2018-08-20 16:21:51 +08:00
dataZoom-dataShadow1.html init 2018-08-20 16:21:51 +08:00
dataZoom-dataShadow2.html init 2018-08-20 16:21:51 +08:00
dataZoom-dynamic.html init 2018-08-20 16:21:51 +08:00
dataZoom-geo.html init 2018-08-20 16:21:51 +08:00
dataZoom-rainfall-connect.html init 2018-08-20 16:21:51 +08:00
dataZoom-rainfall-inside.html init 2018-08-20 16:21:51 +08:00
dataZoom-rainfall.html init 2018-08-20 16:21:51 +08:00
dataZoom-scatter-category.html init 2018-08-20 16:21:51 +08:00
dataZoom-scatter-hv-polar.html init 2018-08-20 16:21:51 +08:00
dataZoom-scatter-hv.html init 2018-08-20 16:21:51 +08:00
dataZoom-scatter-toolbox.html init 2018-08-20 16:21:51 +08:00
dataZoomHighPrecision.html init 2018-08-20 16:21:51 +08:00
diff.html init 2018-08-20 16:21:51 +08:00
dynamicData.html init 2018-08-20 16:21:51 +08:00
dynamicData2.html init 2018-08-20 16:21:51 +08:00
dynamicData3.html init 2018-08-20 16:21:51 +08:00
effectScatter.html init 2018-08-20 16:21:51 +08:00
esl.js init 2018-08-20 16:21:51 +08:00
force.html init 2018-08-20 16:21:51 +08:00
force2.html init 2018-08-20 16:21:51 +08:00
force3.html init 2018-08-20 16:21:51 +08:00
funnel.html init 2018-08-20 16:21:51 +08:00
gauge.html init 2018-08-20 16:21:51 +08:00
geo-map.html init 2018-08-20 16:21:51 +08:00
geoLine.html init 2018-08-20 16:21:51 +08:00
geoScatter.html init 2018-08-20 16:21:51 +08:00
getOption.html init 2018-08-20 16:21:51 +08:00
graph-grid.html init 2018-08-20 16:21:51 +08:00
graph-simple.html init 2018-08-20 16:21:51 +08:00
graph.html init 2018-08-20 16:21:51 +08:00
graphicOption.html init 2018-08-20 16:21:51 +08:00
heatmap-large.html init 2018-08-20 16:21:51 +08:00
heatmap-map.html init 2018-08-20 16:21:51 +08:00
heatmap.html init 2018-08-20 16:21:51 +08:00
ie8.html init 2018-08-20 16:21:51 +08:00
largeLine.html init 2018-08-20 16:21:51 +08:00
lazyUpdate.html init 2018-08-20 16:21:51 +08:00
line-visual.html init 2018-08-20 16:21:51 +08:00
line.html init 2018-08-20 16:21:51 +08:00
lines-bus.html init 2018-08-20 16:21:51 +08:00
lines-symbol.html init 2018-08-20 16:21:51 +08:00
lines-track.html init 2018-08-20 16:21:51 +08:00
loading.html init 2018-08-20 16:21:51 +08:00
logScale.html init 2018-08-20 16:21:51 +08:00
map-contour.html init 2018-08-20 16:21:51 +08:00
map-parallel.html init 2018-08-20 16:21:51 +08:00
map.html init 2018-08-20 16:21:51 +08:00
mapWorld.html init 2018-08-20 16:21:51 +08:00
markArea.html init 2018-08-20 16:21:51 +08:00
markLine.html init 2018-08-20 16:21:51 +08:00
markPoint.html init 2018-08-20 16:21:51 +08:00
masterPainterColorChoice.html init 2018-08-20 16:21:51 +08:00
media-dataZoom.html init 2018-08-20 16:21:51 +08:00
media-finance.html init 2018-08-20 16:21:51 +08:00
media-pie.html init 2018-08-20 16:21:51 +08:00
mix.html init 2018-08-20 16:21:51 +08:00
mobileBench.html init 2018-08-20 16:21:51 +08:00
multipleGrid.html init 2018-08-20 16:21:51 +08:00
parallel-aqi.html init 2018-08-20 16:21:51 +08:00
parallel-nutrients.html init 2018-08-20 16:21:51 +08:00
pictorial-repeat.html init 2018-08-20 16:21:51 +08:00
pictorial-single.html init 2018-08-20 16:21:51 +08:00
pie-calculable.html init 2018-08-20 16:21:51 +08:00
pie.html init 2018-08-20 16:21:51 +08:00
pie2.html init 2018-08-20 16:21:51 +08:00
pie3.html init 2018-08-20 16:21:51 +08:00
pieDynamic.html init 2018-08-20 16:21:51 +08:00
polarLine.html init 2018-08-20 16:21:51 +08:00
polarLine2.html init 2018-08-20 16:21:51 +08:00
polarScatter.html init 2018-08-20 16:21:51 +08:00
punchCard.html init 2018-08-20 16:21:51 +08:00
radar.html init 2018-08-20 16:21:51 +08:00
radar2.html init 2018-08-20 16:21:51 +08:00
radar3.html init 2018-08-20 16:21:51 +08:00
radar4.html init 2018-08-20 16:21:51 +08:00
reset.css init 2018-08-20 16:21:51 +08:00
roseType.html init 2018-08-20 16:21:51 +08:00
sankey.html init 2018-08-20 16:21:51 +08:00
scale-integer.html init 2018-08-20 16:21:51 +08:00
scatter-single-axis.html init 2018-08-20 16:21:51 +08:00
scatter.html init 2018-08-20 16:21:51 +08:00
scatterMatrix.html init 2018-08-20 16:21:51 +08:00
selectedMode.html init 2018-08-20 16:21:51 +08:00
showTip.html init 2018-08-20 16:21:51 +08:00
singleAxisScales.html init 2018-08-20 16:21:51 +08:00
symbol.html init 2018-08-20 16:21:51 +08:00
theme.html init 2018-08-20 16:21:51 +08:00
themeRiver.html init 2018-08-20 16:21:51 +08:00
themeRiver2.html init 2018-08-20 16:21:51 +08:00
timeScale.html init 2018-08-20 16:21:51 +08:00
timeline-finance.html init 2018-08-20 16:21:51 +08:00
timeline-layout.html init 2018-08-20 16:21:51 +08:00
tooltip.html init 2018-08-20 16:21:51 +08:00
touch-slide.html init 2018-08-20 16:21:51 +08:00
touch-test.html init 2018-08-20 16:21:51 +08:00
touch-tooltip.html init 2018-08-20 16:21:51 +08:00
treemap-disk.html init 2018-08-20 16:21:51 +08:00
treemap-obama.html init 2018-08-20 16:21:51 +08:00
treemap-option.html init 2018-08-20 16:21:51 +08:00
treemap-option2.html init 2018-08-20 16:21:51 +08:00
treemap-simple.html init 2018-08-20 16:21:51 +08:00
treemap-visual.html init 2018-08-20 16:21:51 +08:00
visualMap-categories.html init 2018-08-20 16:21:51 +08:00
visualMap-continuous.html init 2018-08-20 16:21:51 +08:00
visualMap-layout.html init 2018-08-20 16:21:51 +08:00
visualMap-opacity.html init 2018-08-20 16:21:51 +08:00
visualMap-pieces.html init 2018-08-20 16:21:51 +08:00
visualMap-scatter-colorAndSymbol.html init 2018-08-20 16:21:51 +08:00
visualMap-scatter-symbolSize.html init 2018-08-20 16:21:51 +08:00
webkit-dep.html init 2018-08-20 16:21:51 +08:00
worldPopulationBubble.html init 2018-08-20 16:21:51 +08:00

README.md

Test Guide

Functional Test

Open ./*.html files in Web Browsers.

Unit Test

Rendering-relevant

Our test strategy is to compare the rendered canvas of current version with last release version. The comparison can either based on the content of rendered canvas, or the stack of canvas operations.

When a test case fails, it doesn't necessary to be a bug since the rendering method may be changed intentionally in a commit. So in this case, we output the rendering result of both versions and the diff result.

Make sure ../dist/echarts.js is the built based on current source files by:

cd ../build
npm install
bash build.sh

By default, we compare current version with last release version. To run the test, you should first download last release using:

cd ../test/ut
./configure

which will download echart.js of last release into ./ut/tmp/oldEcharts.js.

Then, open ./ut/ui.html in Web Browsers.

Compare current with a specific release

If one argument is passed, we take it as the hash code of a release and compare current version with /dist/echarts.js of the that version.

# this compares current `/dist/echarts.js` with that of v3.1.6
./configure 3724a16

Compare arbitrary two commits

Since /dist/echarts.js is only the build result of release versions, to compare arbitrary versions, you need to checkout specific commits and build the source files. Put the build results as ./tmp/oldEcharts.js and ./tmp/newEcharts.js will work.

Rendering-irrelevant

Open ./ut.html files in Web Browsers.