Implement adaptive Android shell and safe navigation (#102)
This commit is contained in:
1 parent
c7703d8efd
commit
d22d71eb5e
32 files changed
+2194
-104
No files matched your search
@@ -102,6 +102,7 @@ fn fixtures() -> String {
|
||||
MobileShellState::Ready,
|
||||
MobileShellState::Locked,
|
||||
MobileShellState::Error,
|
||||
MobileShellState::Stale,
|
||||
] {
|
||||
output.push_str(&format!(" ShellState.{state:?} to listOf(\n"));
|
||||
for page in MobileShell::fixture(state).pages() {
|
||||
@@ -252,8 +253,8 @@ mod tests {
|
||||
fn fixtures_are_complete_non_secret_and_deterministic() {
|
||||
let source = fixtures();
|
||||
assert_eq!(source, fixtures());
|
||||
assert_eq!(source.matches(" to listOf(").count(), 5);
|
||||
assert_eq!(source.matches("ShellPage(").count(), 25);
|
||||
assert_eq!(source.matches(" to listOf(").count(), 6);
|
||||
assert_eq!(source.matches("ShellPage(").count(), 30);
|
||||
assert!(!source.contains("Watch"));
|
||||
assert_eq!(kotlin_string("a\"$b\nc"), "\"a\\\"\\$b\\u000ac\"");
|
||||
assert_eq!(kotlin_string("\0\u{c}\\é"), "\"\\u0000\\u000c\\\\é\"");
|
||||
|
||||
Reference in new issue
Block a user