[web_ui] dependency cleanup (#164256)
Update dependencies across 3 web engine packages Remove unneeded dependencies One set of associated code fixes
This commit is contained in:
parent
0c200c7a09
commit
2bc40b39dc
@ -5,6 +5,7 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:image/image.dart';
|
import 'package:image/image.dart';
|
||||||
import 'package:webdriver/async_io.dart' show WebDriver;
|
import 'package:webdriver/async_io.dart' show WebDriver;
|
||||||
@ -63,13 +64,15 @@ class WebDriverBrowser extends Browser {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Image> captureScreenshot(Rectangle<num> region) async {
|
Future<Image> captureScreenshot(Rectangle<num> region) async {
|
||||||
final Image image = decodePng(await _driver.captureScreenshotAsList())!;
|
// The underlying return type is Uint8Lint – goto definitions to see
|
||||||
|
// Fixing in https://github.com/google/webdriver.dart/pull/323
|
||||||
|
final Image image = decodePng(await _driver.captureScreenshotAsList() as Uint8List)!;
|
||||||
return copyCrop(
|
return copyCrop(
|
||||||
image,
|
image,
|
||||||
region.left.round(),
|
x: region.left.round(),
|
||||||
region.top.round(),
|
y: region.top.round(),
|
||||||
region.width.round(),
|
width: region.width.round(),
|
||||||
region.height.round(),
|
height: region.height.round(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,34 +18,34 @@ dependencies:
|
|||||||
path: ../../third_party/web_test_fonts
|
path: ../../third_party/web_test_fonts
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
archive: 3.6.1
|
archive: 4.0.3
|
||||||
args: any
|
args: any
|
||||||
async: any
|
async: any
|
||||||
convert: any
|
convert: any
|
||||||
crypto: any
|
crypto: any
|
||||||
html: 0.15.4
|
html: 0.15.5
|
||||||
http: 1.1.0
|
http: 1.3.0
|
||||||
http_multi_server: any
|
http_multi_server: any
|
||||||
image: 3.0.1
|
image: 4.5.3
|
||||||
package_config: any
|
package_config: any
|
||||||
path: 1.8.0
|
path: 1.9.1
|
||||||
pool: any
|
pool: any
|
||||||
quiver: 3.2.1
|
quiver: 3.2.2
|
||||||
shelf: any
|
shelf: any
|
||||||
shelf_packages_handler: any
|
shelf_packages_handler: any
|
||||||
shelf_static: any
|
shelf_static: any
|
||||||
shelf_web_socket: any
|
shelf_web_socket: any
|
||||||
stack_trace: any
|
stack_trace: any
|
||||||
stream_channel: 2.1.1
|
stream_channel: 2.1.4
|
||||||
test: 1.25.8
|
test: 1.25.15
|
||||||
test_api: any
|
test_api: any
|
||||||
test_core: any
|
test_core: any
|
||||||
typed_data: any
|
typed_data: any
|
||||||
watcher: 1.1.0
|
watcher: 1.1.1
|
||||||
web_socket_channel: any
|
web_socket_channel: any
|
||||||
webdriver: 3.0.3
|
webdriver: 3.1.0
|
||||||
webkit_inspection_protocol: any
|
webkit_inspection_protocol: any
|
||||||
yaml: 3.0.0
|
yaml: 3.1.3
|
||||||
web_test_utils:
|
web_test_utils:
|
||||||
path: ../../web_sdk/web_test_utils
|
path: ../../web_sdk/web_test_utils
|
||||||
web_engine_tester:
|
web_engine_tester:
|
||||||
|
@ -5,10 +5,9 @@ environment:
|
|||||||
sdk: ^3.7.0-0
|
sdk: ^3.7.0-0
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
js: ^0.7.0
|
stream_channel: 2.1.4
|
||||||
stream_channel: 2.1.1
|
test: 1.25.15
|
||||||
test: 1.25.8
|
webkit_inspection_protocol: 1.2.1
|
||||||
webkit_inspection_protocol: 1.0.0
|
stack_trace: 1.12.1
|
||||||
stack_trace: 1.10.0
|
|
||||||
ui:
|
ui:
|
||||||
path: ../../lib/web_ui
|
path: ../../lib/web_ui
|
||||||
|
@ -5,17 +5,10 @@ environment:
|
|||||||
sdk: ^3.7.0-0
|
sdk: ^3.7.0-0
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
collection: 1.17.0
|
image: 4.5.3
|
||||||
crypto: 3.0.3
|
path: 1.9.1
|
||||||
image: 3.0.1
|
|
||||||
js: ^0.7.0
|
|
||||||
meta: ^1.7.0
|
|
||||||
path: 1.8.0
|
|
||||||
process: 4.2.3
|
|
||||||
skia_gold_client:
|
skia_gold_client:
|
||||||
path: ../../testing/skia_gold_client
|
path: ../../testing/skia_gold_client
|
||||||
typed_data: 1.3.0
|
|
||||||
yaml: 3.0.0
|
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
engine_repo_tools:
|
engine_repo_tools:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user