mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
24 lines
740 B
Dart
24 lines
740 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.
|
|
|
|
@Tags(<String>['web'])
|
|
library;
|
|
|
|
import 'dart:js' as js;
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:integration_test/integration_test.dart';
|
|
|
|
void main() {
|
|
IntegrationTestWidgetsFlutterBinding();
|
|
|
|
test('IntegrationTestWidgetsFlutterBinding on the web should register certain global properties', () {
|
|
expect(js.context.hasProperty(r'$flutterDriver'), true);
|
|
expect(js.context[r'$flutterDriver'], isNotNull);
|
|
|
|
expect(js.context.hasProperty(r'$flutterDriverResult'), true);
|
|
expect(js.context[r'$flutterDriverResult'], isNull);
|
|
});
|
|
}
|