Skip to content

Commit

Permalink
Fix incomplete comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ditman committed May 7, 2024
1 parent 251e2a0 commit 506e055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/flutter/lib/src/foundation/_platform_web.dart
Expand Up @@ -18,7 +18,7 @@ platform.TargetPlatform get defaultTargetPlatform {
_browserPlatform;
}

// The TargetPlatform used ON WEB TESTS, unless overridden.
// The TargetPlatform used on Web tests, unless overridden.
//
// Respects the `ui_web.browser.debugOperatingSystemOverride` value (when set).
platform.TargetPlatform? get _testPlatform {
Expand All @@ -44,7 +44,7 @@ platform.TargetPlatform? get _testPlatform {
// The computation of `operatingSystem` is cached in the ui_web package;
// this getter may be called dozens of times per frame.
//
// _browserPlatform is lazily initialized, and
// _browserPlatform is lazily initialized, and cached forever.
final platform.TargetPlatform _browserPlatform =
_operatingSystemToTargetPlatform(ui_web.browser.operatingSystem);

Expand Down
3 changes: 1 addition & 2 deletions packages/flutter/test/foundation/platform_web_test.dart
Expand Up @@ -11,9 +11,8 @@ import 'package:flutter/foundation.dart' show TargetPlatform, defaultTargetPlatf
import 'package:flutter_test/flutter_test.dart';

void main() {

tearDown(() {
// Remove
// Remove the `debugOperatingSystemOverride`.
ui_web.browser.debugOperatingSystemOverride = null;
});

Expand Down

0 comments on commit 506e055

Please sign in to comment.