/
magnusroot
/
flutter
Обзор
Документация
Войти
/
magnusroot
/
flutter
Код
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
dev/integration_tests/web/lib/web_define_loading.dart
23 строки
684 B
Kate Lovett
Modernize framework lints (#179089)
26 ноя 2025, 04:10
Не верифицирован
26 ноя 2025, 04:10
9d96df2
Код
Авторство
О чём код?
// 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:js_interop'; import 'package:web/web.dart' as web; Future<void> main() async { final output = StringBuffer(); const String combined = String.fromEnvironment('test.valueA') + String.fromEnvironment('test.valueB'); if (combined == 'Example,AValue') { output.write('--- TEST SUCCEEDED ---'); } else { output.write('--- TEST FAILED ---'); } await web.window .fetch('/test-result'.toJS, web.RequestInit(method: 'POST', body: '$output'.toJS)) .toDart; print(output); }