Skip to content

Commit 816fd0a

Browse files
committed
fix golden paths
1 parent 7aed657 commit 816fd0a

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

packages/devtools_app/test/screens/cpu_profiler/method_table/method_table_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void main() {
7878
await expectLater(
7979
find.byType(CpuMethodTable),
8080
matchesDevToolsGolden(
81-
'../../test_infra/goldens/cpu_profiler/method_table_no_selection.png',
81+
'../../../test_infra/goldens/cpu_profiler/method_table_no_selection.png',
8282
),
8383
);
8484
});
@@ -110,7 +110,7 @@ void main() {
110110
await expectLater(
111111
find.byType(CpuMethodTable),
112112
matchesDevToolsGolden(
113-
'../../test_infra/goldens/cpu_profiler/method_table_with_selection.png',
113+
'../../../test_infra/goldens/cpu_profiler/method_table_with_selection.png',
114114
),
115115
);
116116

@@ -120,7 +120,7 @@ void main() {
120120
await expectLater(
121121
find.byType(CpuMethodTable),
122122
matchesDevToolsGolden(
123-
'../../test_infra/goldens/cpu_profiler/method_table_with_selection_2.png',
123+
'../../../test_infra/goldens/cpu_profiler/method_table_with_selection_2.png',
124124
),
125125
);
126126
});

packages/devtools_app/test/screens/memory/chart/chart_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ void main() {
267267
await expectLater(
268268
find.byKey(chartKey),
269269
matchesDevToolsGolden(
270-
'../../test_infra/goldens/memory_chart_scaled_live.png',
270+
'../../../test_infra/goldens/memory_chart_scaled_live.png',
271271
),
272272
);
273273
// Await delay for golden comparison.
@@ -350,7 +350,7 @@ void main() {
350350
await expectLater(
351351
find.byKey(chartKey),
352352
matchesDevToolsGolden(
353-
'../../test_infra/goldens/memory_chart_scaled_all.png',
353+
'../../../test_infra/goldens/memory_chart_scaled_all.png',
354354
),
355355
);
356356
// Await delay for golden comparison.
@@ -390,7 +390,7 @@ void main() {
390390
await expectLater(
391391
find.byKey(chartKey),
392392
matchesDevToolsGolden(
393-
'../../test_infra/goldens/memory_chart_scaled_five_minute.png',
393+
'../../../test_infra/goldens/memory_chart_scaled_five_minute.png',
394394
),
395395
);
396396
// Await delay for golden comparison.
@@ -622,7 +622,7 @@ void main() {
622622
await expectLater(
623623
find.byKey(chartKey),
624624
matchesDevToolsGolden(
625-
'../../test_infra/goldens/memory_chart_fixed_live.png',
625+
'../../../test_infra/goldens/memory_chart_fixed_live.png',
626626
),
627627
);
628628
// Await delay for golden comparison.
@@ -727,7 +727,7 @@ void main() {
727727
await expectLater(
728728
find.byKey(chartKey),
729729
matchesDevToolsGolden(
730-
'../../test_infra/goldens/memory_chart_fixed_all.png',
730+
'../../../test_infra/goldens/memory_chart_fixed_all.png',
731731
),
732732
);
733733
// Await delay for golden comparison.
@@ -778,7 +778,7 @@ void main() {
778778
await expectLater(
779779
find.byKey(chartKey),
780780
matchesDevToolsGolden(
781-
'../../test_infra/goldens/memory_chart_fixed_five_minutes.png',
781+
'../../../test_infra/goldens/memory_chart_fixed_five_minutes.png',
782782
),
783783
);
784784
// Await delay for golden comparison.

packages/devtools_app/test/screens/memory/control/settings_dialog_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void main() {
3939
await expectLater(
4040
find.byType(MemorySettingsDialog),
4141
matchesDevToolsGolden(
42-
'../../test_infra/goldens/settings_dialog_default.png',
42+
'../../../test_infra/goldens/settings_dialog_default.png',
4343
),
4444
);
4545

@@ -52,7 +52,7 @@ void main() {
5252
await expectLater(
5353
find.byType(MemorySettingsDialog),
5454
matchesDevToolsGolden(
55-
'../../test_infra/goldens/settings_dialog_modified.png',
55+
'../../../test_infra/goldens/settings_dialog_modified.png',
5656
),
5757
);
5858
expect(preferences.memory.androidCollectionEnabled.value, isTrue);
@@ -65,7 +65,7 @@ void main() {
6565
await expectLater(
6666
find.byType(MemorySettingsDialog),
6767
matchesDevToolsGolden(
68-
'../../test_infra/goldens/settings_dialog_modified.png',
68+
'../../../test_infra/goldens/settings_dialog_modified.png',
6969
),
7070
);
7171
});

packages/devtools_app/test/screens/memory/diff/widgets/class_filter_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class _FilterTest {
2222
String get name => isDiff ? 'diff' : 'single';
2323

2424
String get sceneGolden =>
25-
'../../../test_infra/goldens/memory_diff_snapshot_scene_$name.png';
25+
'../../../../test_infra/goldens/memory_diff_snapshot_scene_$name.png';
2626
String snapshotGolden(ClassFilterType? type) =>
27-
'../../../test_infra/goldens/memory_diff_snapshot_${type?.name ?? 'custom'}_$name.png';
27+
'../../../../test_infra/goldens/memory_diff_snapshot_${type?.name ?? 'custom'}_$name.png';
2828
static String dialogGolden(ClassFilterType? type) =>
29-
'../../../test_infra/goldens/memory_diff_filter_dialog_${type?.name ?? 'custom'}.png';
29+
'../../../../test_infra/goldens/memory_diff_filter_dialog_${type?.name ?? 'custom'}.png';
3030
}
3131

3232
final _tests = [_FilterTest(isDiff: false), _FilterTest(isDiff: true)];

packages/devtools_app/test/screens/memory/diff/widgets/diff_pane_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void main() {
5757
await expectLater(
5858
find.byType(DiffPane),
5959
matchesDevToolsGolden(
60-
'../../../test_infra/goldens/memory_diff_empty1.png',
60+
'../../../../test_infra/goldens/memory_diff_empty1.png',
6161
),
6262
);
6363

@@ -70,15 +70,15 @@ void main() {
7070
await expectLater(
7171
find.byType(DiffPane),
7272
matchesDevToolsGolden(
73-
'../../../test_infra/goldens/memory_diff_three_snapshots1.png',
73+
'../../../../test_infra/goldens/memory_diff_three_snapshots1.png',
7474
),
7575
);
7676
expect(snapshots.value.length, equals(1 + 3));
7777

7878
await expectLater(
7979
find.byType(DiffPane),
8080
matchesDevToolsGolden(
81-
'../../../test_infra/goldens/memory_diff_selected_class.png',
81+
'../../../../test_infra/goldens/memory_diff_selected_class.png',
8282
),
8383
);
8484

@@ -104,7 +104,7 @@ void main() {
104104
await expectLater(
105105
find.byType(DiffPane),
106106
matchesDevToolsGolden(
107-
'../../../test_infra/goldens/memory_diff_three_snapshots2.png',
107+
'../../../../test_infra/goldens/memory_diff_three_snapshots2.png',
108108
),
109109
);
110110
expect(snapshots.value.length, equals(1 + 3 - 1 + 1));
@@ -115,7 +115,7 @@ void main() {
115115
await expectLater(
116116
find.byType(DiffPane),
117117
matchesDevToolsGolden(
118-
'../../../test_infra/goldens/memory_diff_empty2.png',
118+
'../../../../test_infra/goldens/memory_diff_empty2.png',
119119
),
120120
);
121121
expect(snapshots.value.length, equals(1));

packages/devtools_app/test/screens/memory/framework/memory_screen_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void main() {
142142
await expectLater(
143143
find.byType(MemoryScreenBody),
144144
matchesDevToolsGolden(
145-
'../../test_infra/goldens/memory/load_offline_data_profile_tab.png',
145+
'../../../test_infra/goldens/memory/load_offline_data_profile_tab.png',
146146
),
147147
);
148148

@@ -158,7 +158,7 @@ void main() {
158158
// await expectLater(
159159
// find.byType(MemoryScreenBody),
160160
// matchesDevToolsGolden(
161-
// '../../test_infra/goldens/memory/load_offline_data_diff_tab.png',
161+
// '../../../test_infra/goldens/memory/load_offline_data_diff_tab.png',
162162
// ),
163163
// );
164164
// Select a snapshot.
@@ -170,7 +170,7 @@ void main() {
170170
// await expectLater(
171171
// find.byType(MemoryScreenBody),
172172
// matchesDevToolsGolden(
173-
// '../../test_infra/goldens/memory/load_offline_data_diff_tab_snapshot_selected.png',
173+
// '../../../test_infra/goldens/memory/load_offline_data_diff_tab_snapshot_selected.png',
174174
// ),
175175
// );
176176

@@ -195,7 +195,7 @@ void main() {
195195
await expectLater(
196196
find.byType(MemoryScreenBody),
197197
matchesDevToolsGolden(
198-
'../../test_infra/goldens/memory/load_offline_data_trace_tab.png',
198+
'../../../test_infra/goldens/memory/load_offline_data_trace_tab.png',
199199
),
200200
);
201201
});

packages/devtools_app/test/screens/performance/frame_analysis/frame_analysis_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void main() {
132132
await expectLater(
133133
find.byType(FrameTimeVisualizer),
134134
matchesDevToolsGolden(
135-
'../../test_infra/goldens/performance/frame_analysis/frame_time_visualizer.png',
135+
'../../../test_infra/goldens/performance/frame_analysis/frame_time_visualizer.png',
136136
),
137137
);
138138
});
@@ -163,7 +163,7 @@ void main() {
163163
await expectLater(
164164
find.byType(FrameTimeVisualizer),
165165
matchesDevToolsGolden(
166-
'../../test_infra/goldens/performance/frame_analysis/frame_time_visualizer_icons_only.png',
166+
'../../../test_infra/goldens/performance/frame_analysis/frame_time_visualizer_icons_only.png',
167167
),
168168
);
169169
},
@@ -204,7 +204,7 @@ void main() {
204204
await expectLater(
205205
find.byType(FrameTimeVisualizer),
206206
matchesDevToolsGolden(
207-
'../../test_infra/goldens/performance/frame_analysis/frame_time_visualizer_with_shader_compilation.png',
207+
'../../../test_infra/goldens/performance/frame_analysis/frame_time_visualizer_with_shader_compilation.png',
208208
),
209209
);
210210
},

0 commit comments

Comments
 (0)