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

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.