[flutter_tools] ensure track-widget-creation can be disabled on Android/macOS (#56203)
Ensure --no-track-widget-creation is piped through android/macOS. Adds integration testing for iOS/android/macOS
This commit is contained in:
15
dev/devicelab/bin/tasks/android_enable_twc.dart
Normal file
15
dev/devicelab/bin/tasks/android_enable_twc.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/adb.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/track_widget_creation_enabled_task.dart';
|
||||
|
||||
/// Verify that twc can be enabled/disabled on Android
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.android;
|
||||
await task(TrackWidgetCreationEnabledTask().task);
|
||||
}
|
||||
15
dev/devicelab/bin/tasks/ios_enable_twc.dart
Normal file
15
dev/devicelab/bin/tasks/ios_enable_twc.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/adb.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/track_widget_creation_enabled_task.dart';
|
||||
|
||||
/// Verify that twc can be enabled/disabled on iOS
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(TrackWidgetCreationEnabledTask().task);
|
||||
}
|
||||
13
dev/devicelab/bin/tasks/mac_enable_twc.dart
Normal file
13
dev/devicelab/bin/tasks/mac_enable_twc.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/track_widget_creation_enabled_task.dart';
|
||||
|
||||
/// Verify that twc can be enabled/disabled on macOS
|
||||
Future<void> main() async {
|
||||
await task(TrackWidgetCreationEnabledTask('macos').task);
|
||||
}
|
||||
13
dev/devicelab/bin/tasks/web_enable_twc.dart
Normal file
13
dev/devicelab/bin/tasks/web_enable_twc.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/track_widget_creation_enabled_task.dart';
|
||||
|
||||
/// Verify that twc can be enabled/disabled on the web.
|
||||
Future<void> main() async {
|
||||
await task(TrackWidgetCreationEnabledTask('chrome').task);
|
||||
}
|
||||
Reference in New Issue
Block a user