testBrowser function
Implementation
@isTest
void testBrowser(
String description,
FutureOr<void> Function(BrowserTester tester) callback, {
String location = '/',
bool? skip,
Timeout? timeout,
dynamic tags,
}) {
test(
description,
() async {
if (html.window.location.pathname != location) {
html.window.history.replaceState(null, 'Test', location);
}
var binding = TestBrowserComponentsBinding();
var tester = BrowserTester._(binding);
return binding.runTest(() async {
await callback(tester);
});
},
skip: skip,
timeout: timeout,
tags: tags,
);
}