Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[ci] Stop using the web-renderer option.
  • Loading branch information
ditman committed Nov 11, 2024
commit 8c10c0bddfe8188db889a3b8d766595a71f31bc9
7 changes: 1 addition & 6 deletions script/tool/lib/src/drive_examples_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,7 @@ class DriveExamplesCommand extends PackageLoopingCommand {
'--web-port=7357',
'--browser-name=chrome',
if (useWasm)
'--wasm'
// TODO(dit): Clean this up, https://github.com/flutter/flutter/issues/151869
else if (platform.environment['CHANNEL']?.toLowerCase() == 'master')
'--web-renderer=canvaskit'
else
'--web-renderer=html',
'--wasm',
if (platform.environment.containsKey('CHROME_EXECUTABLE'))
'--chrome-binary=${platform.environment['CHROME_EXECUTABLE']}',
],
Expand Down
63 changes: 0 additions & 63 deletions script/tool/test/drive_examples_command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--screenshot=/path/to/logs/plugin_example-drive',
'--driver',
'test_driver/integration_test.dart',
Expand Down Expand Up @@ -822,61 +821,6 @@ void main() {
]));
});

// TODO(dit): Clean this up, https://github.com/flutter/flutter/issues/151869
test('drives a web plugin (html renderer in stable)', () async {
// Override the platform to simulate CHANNEL: stable
mockPlatform.environment['CHANNEL'] = 'stable';

final RepositoryPackage plugin = createFakePlugin(
'plugin',
packagesDir,
extraFiles: <String>[
'example/integration_test/plugin_test.dart',
'example/test_driver/integration_test.dart',
'example/web/index.html',
],
platformSupport: <String, PlatformDetails>{
platformWeb: const PlatformDetails(PlatformSupport.inline),
},
);

final Directory pluginExampleDirectory = getExampleDir(plugin);

final List<String> output = await runCapturingPrint(runner, <String>[
'drive-examples',
'--web',
]);

expect(
output,
containsAllInOrder(<Matcher>[
contains('Running for plugin'),
contains('No issues found!'),
]),
);

expect(
processRunner.recordedCalls,
orderedEquals(<ProcessCall>[
ProcessCall(
getFlutterCommand(mockPlatform),
const <String>[
'drive',
'-d',
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=html',
'--screenshot=/path/to/logs/plugin_example-drive',
'--driver',
'test_driver/integration_test.dart',
'--target',
'integration_test/plugin_test.dart',
],
pluginExampleDirectory.path),
]));
});

test('runs chromedriver when requested', () async {
final RepositoryPackage plugin = createFakePlugin(
'plugin',
Expand Down Expand Up @@ -916,7 +860,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--screenshot=/path/to/logs/plugin_example-drive',
'--driver',
'test_driver/integration_test.dart',
Expand Down Expand Up @@ -969,7 +912,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--chrome-binary=/path/to/chrome',
'--screenshot=/path/to/logs/plugin_example-drive',
'--driver',
Expand Down Expand Up @@ -1421,7 +1363,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--screenshot=/path/to/logs/plugin_example-drive',
'--driver',
'test_driver/integration_test.dart',
Expand All @@ -1437,7 +1378,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--screenshot=/path/to/logs/plugin_example-drive',
'--driver',
'test_driver/integration_test.dart',
Expand Down Expand Up @@ -1537,7 +1477,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--screenshot=/path/to/logs/a_package_example-drive',
'--driver',
'test_driver/integration_test.dart',
Expand Down Expand Up @@ -1583,7 +1522,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--driver',
'test_driver/integration_test.dart',
'--target',
Expand Down Expand Up @@ -1663,7 +1601,6 @@ void main() {
'web-server',
'--web-port=7357',
'--browser-name=chrome',
'--web-renderer=canvaskit',
'--screenshot=/path/to/logs/a_package_example_with_web-drive',
'--driver',
'test_driver/integration_test.dart',
Expand Down