-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
142 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
sample/src/test/kotlin/com/google/android/horologist/screensizes/AuthErrorScreenTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2022 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.android.horologist.screensizes | ||
|
||
import com.google.android.horologist.auth.composables.screens.AuthErrorScreen | ||
import com.google.android.horologist.screenshots.rng.WearDevice | ||
import com.google.android.horologist.screenshots.rng.WearDeviceScreenshotTest | ||
import org.junit.Test | ||
|
||
class AuthErrorScreenTest(device: WearDevice) : WearDeviceScreenshotTest(device = device) { | ||
@Test | ||
fun initial() = runTest { | ||
AuthErrorScreen() | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
sample/src/test/kotlin/com/google/android/horologist/screensizes/SelectAccountScreenTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2022 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.android.horologist.screensizes | ||
|
||
import com.google.android.horologist.auth.composables.model.AccountUiModel | ||
import com.google.android.horologist.auth.composables.screens.SelectAccountScreen | ||
import com.google.android.horologist.compose.layout.belowTimeTextPreview | ||
import com.google.android.horologist.screenshots.rng.WearDevice | ||
import com.google.android.horologist.screenshots.rng.WearDeviceScreenshotTest | ||
import org.junit.Test | ||
|
||
class SelectAccountScreenTest(device: WearDevice) : WearDeviceScreenshotTest(device = device) { | ||
@Test | ||
fun initial() = runTest { | ||
SelectAccountScreen( | ||
accounts = listOf( | ||
AccountUiModel(email = "maggie@example.com"), | ||
AccountUiModel(email = "thisisaverylongemail@example.com"), | ||
), | ||
onAccountClicked = { _, _ -> }, | ||
columnState = belowTimeTextPreview(), | ||
) | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
.../src/test/kotlin/com/google/android/horologist/screensizes/SignInPlaceholderScreenTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2022 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.android.horologist.screensizes | ||
|
||
import com.google.android.horologist.auth.composables.screens.SignInPlaceholderScreen | ||
import com.google.android.horologist.screenshots.rng.WearDevice | ||
import com.google.android.horologist.screenshots.rng.WearDeviceScreenshotTest | ||
import org.junit.Test | ||
|
||
class SignInPlaceholderScreenTest(device: WearDevice) : WearDeviceScreenshotTest(device = device) { | ||
@Test | ||
fun initial() = runTest { | ||
SignInPlaceholderScreen() | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
sample/src/test/kotlin/com/google/android/horologist/screensizes/SignedInConfirmationTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2022 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") | ||
|
||
package com.google.android.horologist.screensizes | ||
|
||
import android.R | ||
import com.google.android.horologist.auth.composables.dialogs.SignedInConfirmationDialogContent | ||
import com.google.android.horologist.images.base.paintable.DrawableResPaintable | ||
import com.google.android.horologist.screenshots.rng.WearDevice | ||
import com.google.android.horologist.screenshots.rng.WearDeviceScreenshotTest | ||
import org.junit.Test | ||
|
||
class SignedInConfirmationTest(device: WearDevice) : WearDeviceScreenshotTest(device = device) { | ||
@Test | ||
fun initial() = runTest { | ||
SignedInConfirmationDialogContent( | ||
name = "Maggie", | ||
email = "maggie@example.com", | ||
avatar = DrawableResPaintable(R.mipmap.sym_def_app_icon), | ||
) | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.1 KB
sample/src/test/screenshots/AuthErrorScreenTest_galaxy_watch_6_small_font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.2 KB
sample/src/test/screenshots/AuthErrorScreenTest_pixel_watch_large_font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.28 KB
(90%)
sample/src/test/screenshots/CheckYourPhoneTest_galaxy_watch_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.51 KB
(89%)
sample/src/test/screenshots/CheckYourPhoneTest_galaxy_watch_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.52 KB
(89%)
sample/src/test/screenshots/CheckYourPhoneTest_galaxy_watch_6_small_font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.58 KB
(89%)
sample/src/test/screenshots/CheckYourPhoneTest_large_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.25 KB
(90%)
sample/src/test/screenshots/CheckYourPhoneTest_pixel_watch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.18 KB
(91%)
sample/src/test/screenshots/CheckYourPhoneTest_pixel_watch_large_font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.25 KB
(90%)
sample/src/test/screenshots/CheckYourPhoneTest_small_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.51 KB
(89%)
sample/src/test/screenshots/CheckYourPhoneTest_ticwatch_pro_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.7 KB
sample/src/test/screenshots/SelectAccountScreenTest_galaxy_watch_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.6 KB
sample/src/test/screenshots/SelectAccountScreenTest_galaxy_watch_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.8 KB
sample/src/test/screenshots/SelectAccountScreenTest_galaxy_watch_6_small_font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.4 KB
sample/src/test/screenshots/SelectAccountScreenTest_pixel_watch_large_font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.9 KB
sample/src/test/screenshots/SelectAccountScreenTest_ticwatch_pro_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.13 KB
sample/src/test/screenshots/SignInPlaceholderScreenTest_galaxy_watch_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.2 KB
sample/src/test/screenshots/SignInPlaceholderScreenTest_galaxy_watch_6.png
Oops, something went wrong.
Binary file added
BIN
+10.1 KB
.../src/test/screenshots/SignInPlaceholderScreenTest_galaxy_watch_6_small_font.png
Oops, something went wrong.
Binary file added
BIN
+10.2 KB
sample/src/test/screenshots/SignInPlaceholderScreenTest_large_round.png
Oops, something went wrong.
Binary file added
BIN
+8.97 KB
sample/src/test/screenshots/SignInPlaceholderScreenTest_pixel_watch.png
Oops, something went wrong.
Binary file added
BIN
+9.32 KB
sample/src/test/screenshots/SignInPlaceholderScreenTest_pixel_watch_large_font.png
Oops, something went wrong.
Binary file added
BIN
+8.97 KB
sample/src/test/screenshots/SignInPlaceholderScreenTest_small_round.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
sample/src/test/screenshots/SignInPlaceholderScreenTest_ticwatch_pro_5.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
sample/src/test/screenshots/SignedInConfirmationTest_galaxy_watch_5.png
Oops, something went wrong.
Binary file added
BIN
+19.5 KB
sample/src/test/screenshots/SignedInConfirmationTest_galaxy_watch_6.png
Oops, something went wrong.
Binary file added
BIN
+19 KB
sample/src/test/screenshots/SignedInConfirmationTest_galaxy_watch_6_small_font.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+18.9 KB
sample/src/test/screenshots/SignedInConfirmationTest_pixel_watch_large_font.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+19.7 KB
sample/src/test/screenshots/SignedInConfirmationTest_ticwatch_pro_5.png
Oops, something went wrong.