sound_mode.dart 565 Bytes
Newer Older
1 2 3 4
// 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.

5
// @dart = 2.12
6 7 8 9 10

import 'dart:html' as html;

// Verify that web applications can be run in sound mode.
void main() {
11
  const bool isWeak = <int?>[] is List<int>;
12 13 14 15 16 17 18 19 20 21
  String output;
  if (isWeak) {
    output = '--- TEST FAILED ---';
  } else {
    output = '--- TEST SUCCEEDED ---';
  }
  print(output);
  html.HttpRequest.request(
    '/test-result',
    method: 'POST',
22
    sendData: output,
23 24
  );
}