mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Relax the string matching for path in test (#31456)
This commit is contained in:
parent
364726aca1
commit
ca0e778972
|
@ -880,7 +880,7 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
|
|||
// This RichText widget is created by the build method of the Text widget
|
||||
// thus the creation location is in text.dart not basic.dart
|
||||
final List<String> pathSegmentsFramework = Uri.parse(creationLocation['file']).pathSegments;
|
||||
expect(pathSegmentsFramework.join('/'), endsWith('/packages/flutter/lib/src/widgets/text.dart'));
|
||||
expect(pathSegmentsFramework.join('/'), endsWith('/flutter/lib/src/widgets/text.dart'));
|
||||
|
||||
// Strip off /src/widgets/text.dart.
|
||||
final String pubRootFramework = '/' + pathSegmentsFramework.take(pathSegmentsFramework.length - 3).join('/');
|
||||
|
@ -1406,7 +1406,7 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
|
|||
// This RichText widget is created by the build method of the Text widget
|
||||
// thus the creation location is in text.dart not basic.dart
|
||||
final List<String> pathSegmentsFramework = Uri.parse(creationLocation['file']).pathSegments;
|
||||
expect(pathSegmentsFramework.join('/'), endsWith('/packages/flutter/lib/src/widgets/text.dart'));
|
||||
expect(pathSegmentsFramework.join('/'), endsWith('/flutter/lib/src/widgets/text.dart'));
|
||||
|
||||
// Strip off /src/widgets/text.dart.
|
||||
final String pubRootFramework = '/' + pathSegmentsFramework.take(pathSegmentsFramework.length - 3).join('/');
|
||||
|
|
Loading…
Reference in a new issue