This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch fix-21000-line-event in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 27d3dbccbc903d1c99fb3946a093a49f1365b0c6 Author: plainheart <[email protected]> AuthorDate: Sat Nov 15 00:30:11 2025 +0800 test(line): add VRT test case --- test/polyline-gon-event.html | 28 ++++++++++++++++++++++++++++ test/runTest/actions/__meta__.json | 1 + test/runTest/actions/polyline-gon-event.json | 1 + 3 files changed, 30 insertions(+) diff --git a/test/polyline-gon-event.html b/test/polyline-gon-event.html index da0fde7d0..667f60923 100644 --- a/test/polyline-gon-event.html +++ b/test/polyline-gon-event.html @@ -25,6 +25,22 @@ under the License. <script src='lib/simpleRequire.js'></script> <script src='lib/config.js'></script> <script src='lib/testHelper.js'></script> + <style> + .log-container { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: rgba(255, 255, 255, 0.7); + font-size: 12px; + pointer-events: none; + } + .log-container:empty { + display: none; + } + </style> </head> <body> <div id='main0'></div> @@ -124,6 +140,7 @@ under the License. { text: 'Disable All Events', onClick: function () { + logDom.innerHTML = 'Disabled all events<br/>There should be <b>NO</b> more logs below<br/><br/>'; chart.setOption({ series: [ { @@ -153,8 +170,19 @@ under the License. ] }); + var logDom = document.createElement('div'); + logDom.className = 'log-container'; + chart.getDom().appendChild(logDom); + chart.on('click', function (params) { console.log(params); + logDom.appendChild(document.createTextNode(JSON.stringify({ + seriesName: params.seriesName, + seriesIndex: params.seriesIndex, + selfType: params.selfType, + }))); + logDom.appendChild(document.createElement('br')); + logDom.scrollTop = logDom.scrollHeight; }); }); diff --git a/test/runTest/actions/__meta__.json b/test/runTest/actions/__meta__.json index 10f3d0937..89af9cc12 100644 --- a/test/runTest/actions/__meta__.json +++ b/test/runTest/actions/__meta__.json @@ -178,6 +178,7 @@ "polar-rounded": 3, "polarLine": 1, "polarScatter": 1, + "polyline-gon-event": 1, "radar": 3, "radar2": 1, "radar3": 2, diff --git a/test/runTest/actions/polyline-gon-event.json b/test/runTest/actions/polyline-gon-event.json new file mode 100644 index 000000000..f266767d6 --- /dev/null +++ b/test/runTest/actions/polyline-gon-event.json @@ -0,0 +1 @@ +[{"name":"Action 1","ops":[{"type":"mousemove","time":463,"x":619,"y":176},{"type":"mousemove","time":663,"x":583,"y":196},{"type":"mousemove","time":863,"x":536,"y":221},{"type":"mousemove","time":1063,"x":530,"y":233},{"type":"mousemove","time":1263,"x":538,"y":247},{"type":"mousemove","time":1468,"x":541,"y":249},{"type":"mousemove","time":1685,"x":542,"y":251},{"type":"mousedown","time":2074,"x":542,"y":251},{"type":"mouseup","time":2086,"x":542,"y":251},{"time":2087,"delay":400,"typ [...] \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
