Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 651d09c

Browse files
committed
Tweak test
1 parent d36af8f commit 651d09c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenariosui/GetBitmapTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ public void getBitmap() throws Exception {
3333
Bitmap bitmap = activity.getBitmap();
3434

3535
assertEquals(bitmap.getPixel(10, 10), 0xFFFF0000);
36-
assertEquals(bitmap.getPixel(10, 210), 0xFF00FF00);
36+
assertEquals(bitmap.getPixel(10, 210), 0xFF0000FF);
3737
}
3838
}

testing/scenario_app/lib/src/get_bitmap_scenario.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ class GetBitmapScenario extends Scenario {
1818
void onBeginFrame(Duration duration) {
1919
final PictureRecorder recorder = PictureRecorder();
2020
final Canvas canvas = Canvas(recorder);
21-
22-
canvas.drawRect(const Rect.fromLTWH(0, 0, 100, 100), Paint()..color = const Color(0xFFFF0000));
2321
canvas.scale(1.0 / window.devicePixelRatio);
22+
canvas.drawRect(const Rect.fromLTWH(0, 0, 100, 100), Paint()..color = const Color(0xFFFF0000));
2423
canvas.translate(0, 200);
2524
canvas.drawRect(const Rect.fromLTWH(0, 0, 100, 100), Paint()..color = const Color(0xFF0000FF));
2625
final Picture picture = recorder.endRecording();

0 commit comments

Comments
 (0)