We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8cd8851 + 1528f4c commit 3255ca1Copy full SHA for 3255ca1
third_party/test/render_svg_test.dart
@@ -8,8 +8,9 @@ import 'package:test/test.dart';
8
import '../tool/gen_golden.dart' as golden;
9
10
Iterable<File> getGoldenFileNames() sync* {
11
- final Directory dir = new Directory(join(dirname(Platform.script.path),
12
- dirname(Platform.script.path).endsWith('test') ? '..' : '', 'golden'));
+ final String root = dirname(Platform.script.toFilePath());
+ final Directory dir = new Directory(join(root,
13
+ root.endsWith('test') ? '..' : '', 'golden'));
14
for (FileSystemEntity fe in dir.listSync(recursive: true)) {
15
if (fe is File && fe.path.toLowerCase().endsWith('.png')) {
16
yield fe;
0 commit comments