mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-18 10:21:03 +03:00
test(cursor): clarify scale constraints and isolate DPR checks
This commit is contained in:
@@ -211,7 +211,8 @@ Future<void> _checkPolicy(
|
||||
|
||||
Future<void> _checkDprChange(
|
||||
TestFlutterView view, List<Map<dynamic, dynamic>> registrations) async {
|
||||
final data = await _data(1, 'dpr-cache');
|
||||
// Keep the scale above the minimum so only DPR invalidates the cache.
|
||||
final data = await _data(2, 'dpr-cache');
|
||||
final canvas = _Canvas(1, style: kRemoteViewStyleAdaptive, scale: 1);
|
||||
final cursor = _Cursor(data, _FFI(canvas));
|
||||
for (final dpr in [2.0, 1.0]) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// The test drives the cursor lifecycle normally owned by MouseTracker.
|
||||
// ignore_for_file: invalid_use_of_protected_member
|
||||
|
||||
@TestOn('browser')
|
||||
library;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user