mirror of
https://github.com/pyecharts/pyecharts.git
synced 2026-01-25 17:06:27 +00:00
* Fix: 修复 Overlap+Grid 叠加时坐标轴索引混乱的问题 * Fix: test * Remove: space * Add the judgment of Non-Rectchart and fix push problem * Fix some problem * Add: more tests * Format: import * Add: line example * Fix: test
18 lines
452 B
Python
18 lines
452 B
Python
from nose.tools import eq_
|
|
|
|
from pyecharts.render.display import HTML, Javascript
|
|
|
|
|
|
def test_display_html():
|
|
html_content = "<p>hello world<p/>"
|
|
obj = HTML(html_content)
|
|
eq_(obj.data, html_content)
|
|
eq_(obj.__html__(), html_content)
|
|
|
|
|
|
def test_display_javascript():
|
|
js_content = "console.log('hello world')"
|
|
obj = Javascript(js_content)
|
|
eq_(obj.data, js_content)
|
|
eq_(obj._repr_javascript_(), js_content)
|