[web] Remove HTML renderer from framework tests (#162038)

- Cleanup many HTML special cases and skips in framework tests.
- Update some dartdocs that referred to the HTML renderer.

For reviewers: it may help if you set `Hide whitespace` to true in
Github. It will help you skip through all the formatting/indentation
changes.
This commit is contained in:
Mouad Debbar
2025-01-24 16:33:27 -05:00
committed by GitHub
parent b82e9022a3
commit 3755fd1f6e
48 changed files with 924 additions and 1320 deletions

View File

@@ -478,9 +478,9 @@ void main() {
// Tests whether using a deprecated webRenderer toggles a warningText.
Future<void> testWebRendererDeprecationMessage(WebRendererMode webRenderer) async {
testUsingContext(
'Using --web-renderer=${webRenderer.name} triggers a warningText.',
'Using the "${webRenderer.name}" renderer triggers a warningText.',
() async {
// Run the command so it parses --web-renderer, but ignore all errors.
// Run the command so it parses the renderer, but ignore all errors.
// We only care about the logger.
try {
final TestWebBuildCommand buildCommand = TestWebBuildCommand(fileSystem: fileSystem);

View File

@@ -1130,9 +1130,9 @@ void main() {
// Tests whether using a deprecated webRenderer toggles a warningText.
Future<void> testWebRendererDeprecationMessage(WebRendererMode webRenderer) async {
testUsingContext(
'Using --web-renderer=${webRenderer.name} triggers a warningText.',
'Using the "${webRenderer.name}" renderer triggers a warningText.',
() async {
// Run the command so it parses --web-renderer, but ignore all errors.
// Run the command so it parses the renderer, but ignore all errors.
// We only care about the logger.
try {
await createTestCommandRunner(

View File

@@ -1528,9 +1528,9 @@ dev_dependencies:
// Tests whether using a deprecated webRenderer toggles a warningText.
Future<void> testWebRendererDeprecationMessage(WebRendererMode webRenderer) async {
testUsingContext(
'Using --web-renderer=${webRenderer.name} triggers a warningText.',
'Using the "${webRenderer.name}" renderer triggers a warningText.',
() async {
// Run the command so it parses --web-renderer, but ignore all errors.
// Run the command so it parses the renderer, but ignore all errors.
// We only care about the logger.
try {
final FakeFlutterTestRunner testRunner = FakeFlutterTestRunner(0);

View File

@@ -8,7 +8,6 @@ library;
import 'dart:async';
import 'package:file/file.dart';
import 'package:flutter_tools/src/web/compile.dart';
import '../integration.shard/test_data/hot_reload_project.dart';
import '../integration.shard/test_driver.dart';
@@ -74,30 +73,6 @@ Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) a
await flutter.hotRestart();
});
testWithoutContext(
'$testName: newly added code executes during hot restart - html (legacy)',
() async {
final Completer<void> completer = Completer<void>();
final StreamSubscription<String> subscription = flutter.stdout.listen((String line) {
printOnFailure(line);
if (line.contains('(((((RELOAD WORKED)))))')) {
completer.complete();
}
});
await flutter.run(
chrome: true,
additionalCommandArgs: <String>['--verbose', ...WebRendererMode.html.toCliDartDefines],
);
project.uncommentHotReloadPrint();
try {
await flutter.hotRestart();
await completer.future.timeout(const Duration(seconds: 15));
} finally {
await subscription.cancel();
}
},
);
testWithoutContext(
'$testName: newly added code executes during hot restart - canvaskit',
() async {