Dart 使用content_shell进行无头测试--转储渲染树
我正在我的Kubuntu dart开发箱上用我的一个项目(标准unittest htmlconfiguration)尝试这个,我没有看到测试的浏览器输出位,而是得到了这个Dart 使用content_shell进行无头测试--转储渲染树,dart,dart-unittest,Dart,Dart Unittest,我正在我的Kubuntu dart开发箱上用我的一个项目(标准unittest htmlconfiguration)尝试这个,我没有看到测试的浏览器输出位,而是得到了这个 Content-Type: text/plain layer at (0,0) size 800x600 RenderView at (0,0) size 800x600 layer at (0,0) size 800x15 RenderBlock {HTML} at (0,0) size 800x15
Content-Type: text/plain
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x15
RenderBlock {HTML} at (0,0) size 800x15
RenderBody {BODY} at (15,15) size 770x0 [bgcolor=#F8F8F8]
#EOF
#EOF
#EOF
那么我做错了什么
我使用的命令是
content_shell --args --dump-render-tree test/xml2json.html
好的,找到了,您需要添加
<script type="text/javascript" src="packages/unittest/test_controller.js"></script>
对于您的测试html文件,在要点中没有提到它