Otskimanot Sqilal
Otskimanot Sqilal

Reputation: 2402

dart test dart:html without loading dartium

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.

Upvotes: 2

Views: 386

Answers (1)

Chris Buckett
Chris Buckett

Reputation: 14398

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:

Upvotes: 6

Related Questions