File tree Expand file tree Collapse file tree
androidTest/java/org/schabi/newpipe/error
java/org/schabi/newpipe/ui/components/video/comment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ app/release/
1919bin /
2020.vscode /
2121* .code-workspace
22+
23+ # logs
24+ * .log
Original file line number Diff line number Diff line change 1- package org.schabi.newpipe.ui.components.common
1+ package org.schabi.newpipe.error
22
33import android.content.Context
44import androidx.test.core.app.ApplicationProvider
@@ -7,14 +7,12 @@ import org.junit.Assert
77import org.junit.Test
88import org.junit.runner.RunWith
99import org.schabi.newpipe.R
10- import org.schabi.newpipe.error.ErrorInfo
11- import org.schabi.newpipe.error.UserAction
1210import org.schabi.newpipe.extractor.exceptions.ReCaptchaException
1311import java.io.IOException
1412import java.net.SocketTimeoutException
1513
1614@RunWith(AndroidJUnit4 ::class )
17- class CommentSectionErrorTest {
15+ class ErrorInfoCommentsTest {
1816 private val context: Context by lazy { ApplicationProvider .getApplicationContext<Context >() }
1917 // Test 1: Network error on initial load (Resource.Error)
2018 @Test
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import androidx.compose.runtime.getValue
1616import androidx.compose.ui.Alignment
1717import androidx.compose.ui.Modifier
1818import androidx.compose.ui.input.nestedscroll.nestedScroll
19- import androidx.compose.ui.platform.LocalContext
2019import androidx.compose.ui.platform.rememberNestedScrollInteropConnection
2120import androidx.compose.ui.res.pluralStringResource
2221import androidx.compose.ui.tooling.preview.Preview
@@ -57,7 +56,6 @@ private fun CommentSection(
5756 val comments = commentsFlow.collectAsLazyPagingItems()
5857 val nestedScrollInterop = rememberNestedScrollInteropConnection()
5958 val state = rememberLazyListState()
60- val context = LocalContext .current
6159
6260 LazyColumnThemedScrollbar (state = state) {
6361 LazyColumn (
Original file line number Diff line number Diff line change 214214 android : layout_marginTop =" @dimen/video_item_detail_error_panel_margin"
215215 android : visibility =" gone"
216216 tools : visibility =" gone" />
217- <androidx .compose.ui.platform.ComposeView
218- android : id =" @+id/compose_error_panel"
219- android : layout_width =" match_parent"
220- android : layout_height =" wrap_content"
221- android : layout_below =" @id/detail_title_root_layout"
222- android : layout_marginTop =" @dimen/video_item_detail_error_panel_margin"
223- android : visibility =" gone"
224- />
225-
226217 <!-- HIDING ROOT-->
227218 <LinearLayout
228219 android : id =" @+id/detail_content_root_hiding"
You can’t perform that action at this time.
0 commit comments