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

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.