Index: lib/src/runner/loader.dart |
diff --git a/lib/src/runner/loader.dart b/lib/src/runner/loader.dart |
index a4ee3d1eabce9614e31ba706fab2e5b8fb957a0d..33092e1925f5bfc78cb9f54c38ad0e52cf55fdc9 100644 |
--- a/lib/src/runner/loader.dart |
+++ b/lib/src/runner/loader.dart |
@@ -260,6 +260,15 @@ void main(_, Map message) { |
return new IsolateTest(test['name'], metadata, test['sendPort']); |
} |
+ /// Close all the browsers that the loader currently has open. |
+ /// |
+ /// Note that this doesn't close the loader itself. Browser tests can still be |
+ /// loaded, they'll just spawn new browsers. |
+ Future closeBrowsers() async { |
+ if (!_browserServerMemo.hasRun) return; |
+ await (await _browserServer).closeBrowsers(); |
+ } |
+ |
/// Closes the loader and releases all resources allocated by it. |
Future close() { |
return _closeMemo.runOnce(() async { |