Dartium/content shell unable to run tests


When running tests with

pub run test -p dartium (or content-shell)

Although the broser is open with a blank page, every test fails with the same output:enter image description here

The browser.dart file is an ad hoc made one:

import "package:test/test.dart";
import "dart:html";
void main(){
  test("it works!", (){
     expect(true, isTrue);

I even tried by adding a browser.html file:

<!doctype html>
     <title>Browser test</title>
     <link rel="x-dart-test" href="browser.dart">
     <script src="packages/test/dart.js"></script>
     <h1>It works</h1>

Still failing with the same error >.<


Content shell is executed with –dump-render-tree [custom_ad_hoc_url] options by the test package that ends up in a bug, at least in my system (sth related to fonts, I think)

The workaround that I did was to just make an executable that omits that first option, like this:

/path/to/content-shell-dir $2

Answered By – Nico Rodsevich

Answer Checked By – Mildred Charles (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *