aves_mio1/.flutter/packages/flutter/test/dart/browser_environment_test.dart
FabioMich66 19a982ede6
Some checks are pending
Quality check / Flutter analysis (push) Waiting to run
Quality check / CodeQL analysis (java-kotlin) (push) Waiting to run
first commit
2026-03-05 15:51:30 +01:00

18 lines
709 B
Dart

// 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.
@TestOn('browser')
library;
import 'package:flutter_test/flutter_test.dart';
// Regression test for: https://github.com/dart-lang/sdk/issues/47207
// Needs: https://github.com/dart-lang/sdk/commit/6c4593929f067af259113eae5dc1b3b1c04f1035 to pass.
// Originally here: https://github.com/flutter/engine/pull/28808
void main() {
test('Web library environment define exists', () {
expect(const bool.fromEnvironment('dart.library.js_interop'), isTrue);
expect(const bool.fromEnvironment('dart.library.someFooLibrary'), isFalse);
});
}