diff --git a/packages/flutter/test/widgets/widget_inspector_test.dart b/packages/flutter/test/widgets/widget_inspector_test.dart index 910ee83e08..80232aedaf 100644 --- a/packages/flutter/test/widgets/widget_inspector_test.dart +++ b/packages/flutter/test/widgets/widget_inspector_test.dart @@ -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 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 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('/');