test(cursor): clarify scale constraints and isolate DPR checks

This commit is contained in:
fufesou
2026-09-12 14:29:40 +08:00
parent a3bfe075d5
commit 85e7c72ccd
3 changed files with 9 additions and 1 deletions

View File

@@ -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]) {

View File

@@ -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;