Repository: flutter
Issue: [Web] RawKeyEvent valid assertion broken in tests
Labels: a: tests,a: text input,team,framework,platform-web,P3,c: tech-debt,team: skip-test,team-web,triaged-web

[Skip Audit]
These two tests are broken for web. They should assert  due to invalid unicodeScalarValues.

Tests:
https://github.com/flutter/flutter/blob/8ed8b06ac5a1028e689d87592543880882a516da/packages/flutter/test/services/raw_keyboard_test.dart#L1100
https://github.com/flutter/flutter/blob/8ed8b06ac5a1028e689d87592543880882a516da/packages/flutter/test/services/raw_keyboard_test.dart#L1283

Result:
```
01:55 +232 -8: /tmp/flutter sdk/packages/flutter/test/services/raw_keyboard_test.dart: RawKeyEventDataLinux-GTK Code points with more than three Unicode scalar values are not allowed [E]             
  Expected: throws <Instance of 'AssertionError'>
    Actual: <Closure: () => void from: () => _createFailingKey()>
     Which: returned <null>
  package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 214:49      throw_
  package:test_api                                                                          expect$
  package:flutter_test/src/widget_tester.dart 369:3                                         expect$
  raw_keyboard_test.dart 1299:7                                                             <fn>
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50                <fn>
  package:stack_trace                                                                       <fn>
  package:dart-sdk/lib/async/zone.dart 1198:47                                              _rootRunUnary
  package:dart-sdk/lib/async/zone.dart 1100:19                                              runUnary
  package:dart-sdk/lib/async/future_impl.dart 143:18                                        handleValue
  package:dart-sdk/lib/async/future_impl.dart 696:44                                        handleValueCallback
  package:dart-sdk/lib/async/future_impl.dart 725:32                                        _propagateToListeners
  package:dart-sdk/lib/async/future_impl.dart 393:9                                         <fn>
  package:stack_trace                                                                       <fn>
  package:dart-sdk/lib/async/zone.dart 1190:13                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 997:7                                                runGuarded
  package:dart-sdk/lib/async/zone.dart 1037:23                                              callback
  package:dart-sdk/lib/async/schedule_microtask.dart 41:11                                  _microtaskLoop
  package:dart-sdk/lib/async/schedule_microtask.dart 50:5                                   _startMicrotaskLoop
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15               <fn>
  ===== asynchronous gap ===========================
  package:dart-sdk/lib/async/zone.dart 1121:19                                              registerUnaryCallback
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 67:19                _async
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/async/zone.dart 1190:13                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 1629:67                                              _runZoned
  package:dart-sdk/lib/async/zone.dart 1550:10                                              runZoned
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                runBody
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:12               _async
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                runBody
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:12               _async
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/async/zone.dart 1190:13                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 1629:67                                              _runZoned
  package:dart-sdk/lib/async/zone.dart 1550:10                                              runZoned
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50                <fn>
  package:stack_trace                                                                       <fn>
  package:dart-sdk/lib/async/zone.dart 1198:47                                              _rootRunUnary
  package:dart-sdk/lib/async/zone.dart 1100:19                                              runUnary
  package:dart-sdk/lib/async/future_impl.dart 143:18                                        handleValue
  package:dart-sdk/lib/async/future_impl.dart 696:44                                        handleValueCallback
  package:dart-sdk/lib/async/future_impl.dart 725:32                                        _propagateToListeners
  package:dart-sdk/lib/async/future_impl.dart 519:7                                         [_complete]
  package:dart-sdk/lib/async/future.dart 175:15                                             <fn>
  package:stack_trace                                                                       <fn>
  package:dart-sdk/lib/async/zone.dart 1182:47                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 997:7                                                runGuarded
  package:dart-sdk/lib/async/zone.dart 1037:23                                              <fn>
  package:stack_trace                                                                       <fn>
  package:dart-sdk/lib/async/zone.dart 1190:13                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 1021:23                                              <fn>
  package:dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19           internalCallback
  ===== asynchronous gap ===========================
  package:dart-sdk/lib/async/zone.dart 1121:19                                              registerUnaryCallback
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 67:19                _async
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/async/zone.dart 1190:13                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 1629:67                                              _runZoned
  package:dart-sdk/lib/async/zone.dart 1550:10                                              runZoned
  package:stack_trace                                                                       <fn>
  package:dart-sdk/lib/async/zone.dart 1190:13                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 1629:67                                              _runZoned
  package:dart-sdk/lib/async/zone.dart 1550:10                                              runZoned
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/async/zone.dart 1190:13                                              _rootRun
  package:dart-sdk/lib/async/zone.dart 1093:19                                              run
  package:dart-sdk/lib/async/zone.dart 1629:67                                              _runZoned
  package:dart-sdk/lib/async/zone.dart 1550:10                                              runZoned
  package:test_api                                                                          <fn>
  package:dart-sdk/lib/async/zone.dart 1198:47                                              _rootRunUnary
  package:dart-sdk/lib/async/zone.dart 1100:19                                              runUnary
  package:dart-sdk/lib/async/zone.dart 1005:7                                               runUnaryGuarded
  package:dart-sdk/lib/async/stream_impl.dart 357:11                                        [_sendData]
  package:dart-sdk/lib/async/stream_impl.dart 285:7                                         [_add]
  package:dart-sdk/lib/async/stream_controller.dart 808:19                                  [_sendData]
  package:dart-sdk/lib/async/stream_controller.dart 682:7                                   [_add]
  package:dart-sdk/lib/async/stream_controller.dart 624:5                                   add
  package:dart-sdk/lib/async/zone.dart 1206:13                                              _rootRunUnary
  package:dart-sdk/lib/async/zone.dart 1100:19                                              runUnary
  package:dart-sdk/lib/async/zone.dart 1005:7                                               runUnaryGuarded
  package:dart-sdk/lib/async/stream_impl.dart 357:11                                        [_sendData]
  package:dart-sdk/lib/async/stream_impl.dart 285:7                                         [_add]
  package:dart-sdk/lib/async/stream_controller.dart 808:19                                  [_sendData]
  package:dart-sdk/lib/async/stream_controller.dart 682:7                                   [_add]
  package:dart-sdk/lib/async/stream_controller.dart 624:5                                   add
  package:dart-sdk/lib/async/stream_controller.dart 900:13                                  add
  package:stream_channel                                                                    <fn>
  package:dart-sdk/lib/async/zone.dart 1384:10                                              runUnaryGuarded
  package:dart-sdk/lib/async/stream_impl.dart 357:11                                        [_sendData]
  package:dart-sdk/lib/async/stream_impl.dart 285:7                                         [_add]
  package:dart-sdk/lib/async/stream_controller.dart 808:19                                  [_sendData]
  package:dart-sdk/lib/async/stream_controller.dart 682:7                                   [_add]
  package:dart-sdk/lib/async/stream_controller.dart 624:5                                   add
  package:dart-sdk/lib/async/zone.dart 1384:10                                              runUnaryGuarded
  package:dart-sdk/lib/async/stream_impl.dart 357:11                                        [_sendData]
  package:dart-sdk/lib/async/stream_impl.dart 285:7                                         [_add]
  package:dart-sdk/lib/async/stream_controller.dart 808:19                                  [_sendData]
  package:dart-sdk/lib/async/stream_controller.dart 682:7                                   [_add]
  package:dart-sdk/lib/async/stream_controller.dart 624:5                                   add
  package:dart-sdk/lib/async/stream_controller.dart 900:13                                  add
  package:dart-sdk/lib/async/zone.dart 1384:10                                              runUnaryGuarded
  package:dart-sdk/lib/async/stream_impl.dart 357:11                                        [_sendData]
  package:dart-sdk/lib/async/stream_impl.dart 285:7                                         [_add]
  package:dart-sdk/lib/async/stream_controller.dart 808:19                                  [_sendData]
  package:dart-sdk/lib/async/stream_controller.dart 682:7                                   [_add]
  package:dart-sdk/lib/async/stream_controller.dart 624:5                                   add
  package:dart-sdk/lib/async/zone.dart 1384:10                                              runUnaryGuarded
  package:dart-sdk/lib/async/stream_impl.dart 357:11                                        [_sendData]
  package:dart-sdk/lib/async/stream_impl.dart 285:7                                         [_add]
  package:dart-sdk/lib/async/stream_controller.dart 808:19                                  [_sendData]
  package:dart-sdk/lib/async/stream_controller.dart 682:7                                   [_add]
  package:dart-sdk/lib/async/stream_controller.dart 624:5                                   add
  package:dart-sdk/lib/async/stream_controller.dart 900:13                                  add
  package:stream_channel                                                                    add
  raw_keyboard_test.dart.browser_test.dart 52:17                                            <fn>
  package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 324:14  _checkAndCall
  package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 329:39  dcall
  package:dart-sdk/lib/html/dart2js/html_dart2js.dart 37188:58                              <fn>
```

flutter doctor:
```
[✓] Flutter (Channel master, 1.20.0-3.0.pre.140, on Mac OS X 10.15.4 19E287, locale en-US)
    • Flutter version 1.20.0-3.0.pre.140 at /Users/katelovett/github/flutter
    • Framework revision 71632cfb72 (18 minutes ago), 2020-07-07 14:05:01 -0700
    • Engine revision f22ac9da9c
    • Dart version 2.9.0 (build 2.9.0-20.0.dev 69aba23371)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/katelovett/Library/Android/sdk
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C505
    • CocoaPods version 1.9.1

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 36.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.1

[✓] Connected device (1 available)
    • iPhone 11 Pro Max (mobile) • A8FFA716-A67B-4468-B92B-F2B61F2306A0 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3
      (simulator)

• No issues found!
```