Is there any way to test a code with dart:html
imported on it, without dartium being triggered.
I want to test HttpRequest
to a JSON data and expected it to display it on terminal, and dart editor wants to open dartium EVERYTIME, which i think unnecessary.
Dartium contains the browser hosted Dart VM, which the relevant browser DOM bindings. When you run code that needs a browser DOM, such as dart:html, you will get Dartium running.
However, you can also use DumpRenderTree - which is a headless browser (ie, produces output to the console).
Take a look at these post for more about DumpRenderTree and Dart:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.