Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dart 使用content_shell进行无头测试--转储渲染树_Dart_Dart Unittest - Fatal编程技术网

Dart 使用content_shell进行无头测试--转储渲染树

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

我正在我的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
    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文件,在要点中没有提到它