From 0e50ee6e7fca6c3e199649ddefaaffddeedf0939 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Tue, 14 Jun 2016 12:35:59 -0700 Subject: [PATCH] Remove implicit dart:ui dependency (#4561) --- .../test_driver/transitions_perf_test.dart | 52 ++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/examples/flutter_gallery/test_driver/transitions_perf_test.dart b/examples/flutter_gallery/test_driver/transitions_perf_test.dart index 480f726d51..5f7ab9fcd1 100644 --- a/examples/flutter_gallery/test_driver/transitions_perf_test.dart +++ b/examples/flutter_gallery/test_driver/transitions_perf_test.dart @@ -3,21 +3,61 @@ // found in the LICENSE file. import 'dart:async'; -import 'dart:collection' show LinkedHashSet; import 'dart:convert' show JsonEncoder; import 'package:file/file.dart'; import 'package:file/io.dart'; import 'package:flutter_driver/flutter_driver.dart'; -import 'package:flutter_gallery/gallery/item.dart' show GalleryItem, kAllGalleryItems; import 'package:path/path.dart' as path; import 'package:test/test.dart'; -final List demoCategories = new LinkedHashSet.from( - kAllGalleryItems.map((GalleryItem item) => item.category)).toList(); +// Warning: this list must be kept in sync with the value of +// kAllGalleryItems.map((GalleryItem item) => item.category)).toList(); +final List demoCategories = [ + 'Demos', + 'Components', + 'Style' +]; -final List demoTitles = - kAllGalleryItems.map((GalleryItem item) => item.title).toList(); +// Warning: this list must be kept in sync with the value of +// kAllGalleryItems.map((GalleryItem item) => item.title).toList(); +final List demoTitles = [ + // Demos + // 'Pesto', TODO(hansmuller): restore when Pesto has a back button. + 'Shrine', + 'Calculator', + 'Contacts', + // Components + 'Buttons', + 'Cards', + 'Chips', + 'Date picker', + 'Data tables', + 'Dialog', + 'Expand/collapse list control', + 'Floating action button', + 'Grid', + 'Icons', + 'Leave-behind list items', + 'List', + 'Menus', + 'Modal bottom sheet', + 'Over-scroll', + 'Page selector', + 'Persistent bottom sheet', + 'Progress indicators', + 'Scrollable tabs', + 'Selection controls', + 'Sliders', + 'Snackbar', + 'Tabs', + 'Text fields', + 'Time picker', + 'Tooltips', + // Style + 'Colors', + 'Typography' +]; Future saveDurationsHistogram(List> events) async { final Map> durations = new Map>();