@@ -34,26 +34,6 @@ class ZenikaIntegrationTests : LocalIntegrationTestBase() {
34
34
override fun missingExpiresInCookie () {
35
35
}
36
36
37
- @Suppress(" DEPRECATION" ) // the point is to test this deprecated API
38
- @Test
39
- fun httpTabEndpoints_basic () {
40
- runBlockingWithTimeout {
41
- val chrome = chromeHttp()
42
- chrome.closeAllTargets()
43
-
44
- val newTab = chrome.newTab()
45
- assertEquals(" about:blank" , newTab.url.trimEnd(' /' ))
46
- assertTargetCount(1 , chrome.targets())
47
- chrome.closeTab(newTab.id)
48
-
49
- assertTargetCount(0 , chrome.targets())
50
- chrome.newTab()
51
- chrome.newTab()
52
- chrome.closeAllTargets()
53
- assertTargetCount(0 , chrome.targets())
54
- }
55
- }
56
-
57
37
@Suppress(" DEPRECATION" ) // the point is to test this deprecated API
58
38
@Test
59
39
fun httpTabEndpoints_newTabWithCustomUrl () {
@@ -78,13 +58,4 @@ class ZenikaIntegrationTests : LocalIntegrationTestBase() {
78
58
)
79
59
}
80
60
}
81
-
82
- private fun assertTargetCount (expected : Int , currentTargets : List <ChromeDPTarget >) {
83
- assertEquals(
84
- expected = expected,
85
- actual = currentTargets.size,
86
- message = " Expected $expected tab(s) but got ${currentTargets.size} instead:\n " +
87
- currentTargets.joinToString(" \n " ),
88
- )
89
- }
90
61
}
0 commit comments