blob: 41d35b8746402bcea12c51875de90f425183d5bd [file] [log] [blame]
// Copyright 2019, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:e2e/e2e.dart';
import 'package:quick_actions/quick_actions.dart';
void main() {
E2EWidgetsFlutterBinding.ensureInitialized();
testWidgets('Can set shortcuts', (WidgetTester tester) async {
final QuickActions quickActions = QuickActions();
quickActions.initialize(null);
const ShortcutItem shortCutItem = ShortcutItem(
type: 'action_one',
localizedTitle: 'Action one',
icon: 'AppIcon',
);
expect(
quickActions.setShortcutItems(<ShortcutItem>[shortCutItem]), completes);
});
}