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

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.