Skip to content

Commit 825faf0

Browse files
committed
test(android-e2e): keep the rotation evidence to WindowManager decisions and display rotation fields
1 parent 77a0817 commit 825faf0

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

‎test/integration/android-emulator-e2e/live-harness.ts‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,22 @@ function selectRotationLines(title: string, output: string): string {
7575
if (title === 'display rotation') {
7676
return output
7777
.split('\n')
78-
.filter((line) => /rotation|orientation/i.test(line))
79-
.slice(0, 12)
78+
.filter((line) =>
79+
/mCurrentOrientation|mRotation=|installOrientation|\brotation \d/.test(line),
80+
)
81+
.map((line) => line.trim().slice(0, 200))
82+
.slice(0, 8)
8083
.join('\n');
8184
}
8285
if (title === 'logcat rotation decisions') {
8386
return output
8487
.split('\n')
85-
.filter((line) => /rotation|orientation/i.test(line) && !/AccessibilityNodeInfo/.test(line))
88+
.filter(
89+
(line) =>
90+
/(WindowManager|DisplayRotation|WindowOrientationListener|RotationResolver|DisplayContent|SensorService)/.test(
91+
line,
92+
) && /rotat|orient/i.test(line),
93+
)
8694
.slice(-60)
8795
.join('\n');
8896
}

0 commit comments

Comments
 (0)