Skip to content

Commit 2331f11

Browse files
committed
screenshottest更新
1 parent 76355e1 commit 2331f11

7 files changed

Lines changed: 118 additions & 22 deletions

File tree

AndroidApp/ui/build/reports/screenshotTest/preview/debug/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>Test Summary</h1>
1919
<tr>
2020
<td>
2121
<div class="infoBox" id="tests">
22-
<div class="counter">16</div>
22+
<div class="counter">17</div>
2323
<p>tests</p>
2424
</div>
2525
</td>
@@ -43,7 +43,7 @@ <h1>Test Summary</h1>
4343
</td>
4444
<td>
4545
<div class="infoBox" id="duration">
46-
<div class="counter">3.154s</div>
46+
<div class="counter">3.747s</div>
4747
<p>duration</p>
4848
</div>
4949
</td>
@@ -88,11 +88,11 @@ <h2>Packages</h2>
8888
<td class="success">
8989
<a href="me.nya_n.notificationnotifier.html">me.nya_n.notificationnotifier</a>
9090
</td>
91-
<td>16</td>
91+
<td>17</td>
9292
<td>0</td>
9393
<td>0</td>
9494
<td>0</td>
95-
<td>3.154s</td>
95+
<td>3.747s</td>
9696
<td class="success">100%</td>
9797
</tr>
9898
</tbody>
@@ -120,17 +120,17 @@ <h2>Classes</h2>
120120
<td>0</td>
121121
<td>0</td>
122122
<td>0</td>
123-
<td>1.615s</td>
123+
<td>1.931s</td>
124124
<td class="success">100%</td>
125125
</tr>
126126
<tr>
127127
<td class="success"/>
128128
<a href="me.nya_n.notificationnotifier.ContentScreenshotTest.html">me.nya_n.notificationnotifier.ContentScreenshotTest</a>
129-
<td>5</td>
129+
<td>6</td>
130130
<td>0</td>
131131
<td>0</td>
132132
<td>0</td>
133-
<td>1.539s</td>
133+
<td>1.816s</td>
134134
<td class="success">100%</td>
135135
</tr>
136136
</tbody>
@@ -139,7 +139,7 @@ <h2>Classes</h2>
139139
</div>
140140
<div id="footer">
141141
<p>Generated by
142-
<a href="http://www.gradle.org">Gradle 8.14.3</a> at Jan 19, 2026, 11:38:47 PM</p>
142+
<a href="http://www.gradle.org">Gradle 9.1.0</a> at Jan 21, 2026, 12:05:22 AM</p>
143143
</div>
144144
</div>
145145
</body>

AndroidApp/ui/build/reports/screenshotTest/preview/debug/me.nya_n.notificationnotifier.ComponentScreenshotTest.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h1>Class me.nya_n.notificationnotifier.ComponentScreenshotTest</h1>
4646
</td>
4747
<td>
4848
<div class="infoBox" id="duration">
49-
<div class="counter">1.615s</div>
49+
<div class="counter">1.931s</div>
5050
<p>duration</p>
5151
</div>
5252
</td>
@@ -361,7 +361,7 @@ <h3 class="success">TopBarComponentScreenshotTest</h3>
361361
</div>
362362
<div id="footer">
363363
<p>Generated by
364-
<a href="http://www.gradle.org">Gradle 8.14.3</a> at Jan 19, 2026, 11:38:47 PM</p>
364+
<a href="http://www.gradle.org">Gradle 9.1.0</a> at Jan 21, 2026, 12:05:22 AM</p>
365365
</div>
366366
</div>
367367
</body>

AndroidApp/ui/build/reports/screenshotTest/preview/debug/me.nya_n.notificationnotifier.ContentScreenshotTest.html

Lines changed: 31 additions & 5 deletions
Large diffs are not rendered by default.

AndroidApp/ui/build/reports/screenshotTest/preview/debug/me.nya_n.notificationnotifier.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1>Package me.nya_n.notificationnotifier</h1>
2121
<tr>
2222
<td>
2323
<div class="infoBox" id="tests">
24-
<div class="counter">16</div>
24+
<div class="counter">17</div>
2525
<p>tests</p>
2626
</div>
2727
</td>
@@ -45,7 +45,7 @@ <h1>Package me.nya_n.notificationnotifier</h1>
4545
</td>
4646
<td>
4747
<div class="infoBox" id="duration">
48-
<div class="counter">3.154s</div>
48+
<div class="counter">3.747s</div>
4949
<p>duration</p>
5050
</div>
5151
</td>
@@ -90,26 +90,26 @@ <h2>Classes</h2>
9090
<td>0</td>
9191
<td>0</td>
9292
<td>0</td>
93-
<td>1.615s</td>
93+
<td>1.931s</td>
9494
<td class="success">100%</td>
9595
</tr>
9696
<tr>
9797
<td class="success">
9898
<a href="me.nya_n.notificationnotifier.ContentScreenshotTest.html">ContentScreenshotTest</a>
9999
</td>
100-
<td>5</td>
100+
<td>6</td>
101101
<td>0</td>
102102
<td>0</td>
103103
<td>0</td>
104-
<td>1.539s</td>
104+
<td>1.816s</td>
105105
<td class="success">100%</td>
106106
</tr>
107107
</table>
108108
</div>
109109
</div>
110110
<div id="footer">
111111
<p>Generated by
112-
<a href="http://www.gradle.org">Gradle 8.14.3</a> at Jan 19, 2026, 11:38:47 PM</p>
112+
<a href="http://www.gradle.org">Gradle 9.1.0</a> at Jan 21, 2026, 12:05:22 AM</p>
113113
</div>
114114
</div>
115115
</body>

AndroidApp/ui/src/screenshotTest/kotlin/me/nya_n/notificationnotifier/ContentScreenshotTest.kt

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ import androidx.compose.runtime.Composable
1010
import androidx.compose.runtime.remember
1111
import androidx.compose.ui.tooling.preview.Preview
1212
import com.android.tools.screenshot.PreviewTest
13+
import com.mikepenz.aboutlibraries.Libs
14+
import com.mikepenz.aboutlibraries.entity.Developer
15+
import com.mikepenz.aboutlibraries.entity.Library
16+
import com.mikepenz.aboutlibraries.entity.License
17+
import com.mikepenz.aboutlibraries.entity.Scm
1318
import me.nya_n.notificationnotifier.model.InstalledApp
1419
import me.nya_n.notificationnotifier.ui.screen.detail.DetailContent
20+
import me.nya_n.notificationnotifier.ui.screen.license.LicenseContent
1521
import me.nya_n.notificationnotifier.ui.screen.main.MainContent
1622
import me.nya_n.notificationnotifier.ui.screen.main.TabItem
1723
import me.nya_n.notificationnotifier.ui.screen.selection.SelectionContent
@@ -23,7 +29,7 @@ import me.nya_n.notificationnotifier.ui.util.Sample
2329
class ContentScreenshotTest {
2430

2531
@PreviewTest
26-
@Preview
32+
@Preview(backgroundColor = 0xFFC7B5A8, showBackground = true)
2733
@Composable
2834
fun MainContentScreenshotTest() {
2935
val snackbarHostState = remember { SnackbarHostState() }
@@ -111,4 +117,68 @@ class ContentScreenshotTest {
111117
)
112118
}
113119
}
120+
121+
@PreviewTest
122+
@Preview(backgroundColor = 0xFFC7B5A8, showBackground = true)
123+
@Composable
124+
fun LicenseContentScreenshotTest() {
125+
val snackbarHostState = remember { SnackbarHostState() }
126+
val libs = Libs(
127+
libraries = listOf(
128+
Library(
129+
uniqueId = "sample1",
130+
artifactVersion = "1.2.3",
131+
name = "sample1",
132+
description = "test description",
133+
website = "https://nya-n.me",
134+
developers = listOf(Developer("kani", null)),
135+
organization = null,
136+
scm = Scm(null, null, null),
137+
licenses = setOf(
138+
License(
139+
name = "Apache-2.0",
140+
url = "https://www.apache.org/licenses/LICENSE-2.0",
141+
hash = "abc123hash"
142+
)
143+
)
144+
),
145+
Library(
146+
uniqueId = "sample2",
147+
artifactVersion = null,
148+
name = "sample2",
149+
description = null,
150+
website = null,
151+
developers = listOf(),
152+
organization = null,
153+
scm = Scm(null, null, null),
154+
licenses = setOf(
155+
License(
156+
name = "MIT",
157+
url = "https://opensource.org/licenses/MIT",
158+
hash = "def456hash"
159+
)
160+
),
161+
),
162+
Library(
163+
uniqueId = "sample3",
164+
artifactVersion = null,
165+
name = "sample3",
166+
description = null,
167+
website = null,
168+
developers = listOf(),
169+
organization = null,
170+
scm = null,
171+
licenses = setOf()
172+
)
173+
),
174+
licenses = setOf(),
175+
)
176+
AppTheme {
177+
LicenseContent(
178+
snackbarHostState = snackbarHostState,
179+
libraries = libs,
180+
onBack = { }
181+
)
182+
}
183+
}
114184
}
Loading
Loading

0 commit comments

Comments
 (0)