From ca0e778972be8f200c350a6dc90e6cc608ab46ad Mon Sep 17 00:00:00 2001 From: Keerti Parthasarathy Date: Tue, 23 Apr 2019 13:46:53 -0700 Subject: [PATCH] Relax the string matching for path in test (#31456) --- packages/flutter/test/widgets/widget_inspector_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('/');