This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch fix/legend-lang
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit e80b70f674e227b42900dddf177c8aad3a3dfe8f
Author: SHUANG SU <[email protected]>
AuthorDate: Fri Sep 27 20:30:24 2019 +0800

    test: tweak test case.
---
 test/legend.html | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/test/legend.html b/test/legend.html
index 0f74621..4045d9e 100644
--- a/test/legend.html
+++ b/test/legend.html
@@ -46,7 +46,6 @@ under the License.
             }
         </style>
 
-        <h1>No scroll, left not set (should be center)</h1>
         <div class="chart" id="plain"></div>
         <h1>No scroll, width 300, right: 10</h1>
         <div class="chart" id="plain2"></div>
@@ -153,6 +152,16 @@ under the License.
                 var option = {
                     legend: {
                         selector: true,
+                        selectorLabel: {
+                            color: 'yellow',
+                            borderColor: 'green',
+                            backgroundColor: 'blue'
+                        },
+                        emphasis: {
+                            selectorLabel: {
+                                backgroundColor: 'red'
+                            }
+                        },
                         data: seriesInfo.legendData,
                         // backgroundColor: 'rgba(0,100,50,0.2)'
                     },
@@ -169,7 +178,13 @@ under the License.
                     series: seriesInfo.series
                 };
 
-                testHelper.createChart(echarts, 'plain', option);
+                testHelper.create(echarts, 'plain', {
+                    title: [
+                        'No scroll, left not set (should be center)',
+                        'color: yellow, borderColor: green, backgroundColor: 
blue, emphasis backgroundColor: red'
+                    ],
+                    option: option
+                });
             })
         </script>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to