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:
The browser.dart file is an ad hoc made one:
@TestOn("browser")
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>
<html>
<head>
<title>Browser test</title>
<link rel="x-dart-test" href="browser.dart">
<script src="packages/test/dart.js"></script>
</head>
<body>
<h1>It works</h1>
</body>
</html>
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:
#!/bin/bash
#/usr/bin/content_shell
/path/to/content-shell-dir $2