Commit 67c843f7 authored by Lau Ching Jun's avatar Lau Ching Jun Committed by Flutter GitHub Bot

Rename conditional imported files to match convention (#48356)

parent f7b8d62c
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/// ///
/// See also: /// See also:
/// ///
/// * [_web_extension.dart], which has the dart:html implementation /// * [_extension_web.dart], which has the dart:html implementation
void registerWebServiceExtension(Future<Map<String, dynamic>> Function(Map<String, String>) call) { void registerWebServiceExtension(Future<Map<String, dynamic>> Function(Map<String, String>) call) {
throw UnsupportedError('Use registerServiceExtension instead'); throw UnsupportedError('Use registerServiceExtension instead');
} }
...@@ -17,7 +17,7 @@ import 'dart:js_util' as js_util; ...@@ -17,7 +17,7 @@ import 'dart:js_util' as js_util;
/// ///
/// See also: /// See also:
/// ///
/// * [_io_extension.dart], which has the dart:io implementation /// * [_extension_io.dart], which has the dart:io implementation
void registerWebServiceExtension(Future<Map<String, dynamic>> Function(Map<String, String>) call) { void registerWebServiceExtension(Future<Map<String, dynamic>> Function(Map<String, String>) call) {
js_util.setProperty(html.window, '\$flutterDriver', allowInterop((dynamic message) async { js_util.setProperty(html.window, '\$flutterDriver', allowInterop((dynamic message) async {
// ignore: undefined_function, undefined_identifier // ignore: undefined_function, undefined_identifier
......
...@@ -30,7 +30,7 @@ import '../common/request_data.dart'; ...@@ -30,7 +30,7 @@ import '../common/request_data.dart';
import '../common/semantics.dart'; import '../common/semantics.dart';
import '../common/text.dart'; import '../common/text.dart';
import '../common/wait.dart'; import '../common/wait.dart';
import '_io_extension.dart' if (dart.library.html) '_web_extension.dart'; import '_extension_io.dart' if (dart.library.html) '_extension_web.dart';
import 'wait_conditions.dart'; import 'wait_conditions.dart';
const String _extensionMethodName = 'driver'; const String _extensionMethodName = 'driver';
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter_driver/src/extension/_io_extension.dart'; import 'package:flutter_driver/src/extension/_extension_io.dart';
import '../../common.dart'; import '../../common.dart';
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'dart:js' as js; import 'dart:js' as js;
import 'package:flutter_driver/src/extension/_web_extension.dart'; import 'package:flutter_driver/src/extension/_extension_web.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
void main() { void main() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment