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 >.<
Aucun commentaire:
Enregistrer un commentaire