Skip to content

Commit fc18726

Browse files
committed
Remove unknown enums deserialization integration test
We have no more real-life examples of this for now. The AXPropertyName enum was fixed in the protocol.
1 parent 3bcbd83 commit fc18726

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/jvmTest/kotlin/LocalIntegrationTestBase.kt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,6 @@ abstract class LocalIntegrationTestBase : IntegrationTestBase() {
157157
}
158158
}
159159

160-
@OptIn(ExperimentalChromeApi::class)
161-
@Test
162-
fun test_deserialization_unknown_enum() = runTestWithRealTime {
163-
chromeWebSocket().use { browser ->
164-
browser.newPage().use { page ->
165-
page.gotoTestPageResource("basic.html")
166-
val tree = page.accessibility.getFullAXTree() // just test that this doesn't fail
167-
168-
assertTrue("we are no longer testing that unknown AXPropertyName values are deserialized as NotDefinedInProtocol") {
169-
tree.nodes.any { n ->
170-
n.properties.anyUndefinedName() || n.ignoredReasons.anyUndefinedName()
171-
}
172-
}
173-
}
174-
}
175-
}
176-
177160
@OptIn(ExperimentalChromeApi::class)
178161
@Test
179162
fun test_deserialization_RemoteObject_subtype_enum() = runTestWithRealTime {
@@ -190,7 +173,4 @@ abstract class LocalIntegrationTestBase : IntegrationTestBase() {
190173
}
191174
}
192175
}
193-
194-
private fun List<AXProperty>?.anyUndefinedName(): Boolean =
195-
this != null && this.any { it.name is AXPropertyName.NotDefinedInProtocol }
196176
}

0 commit comments

Comments
 (0)