mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00:00
Bug 1627354: Part 4 - Update junit tests to reflect changes caused by the upgrade to platform 29; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D69634 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
cbad7b5792
commit
914c70e06f
@ -1006,6 +1006,7 @@ class AccessibilityTest : BaseSessionTest() {
|
||||
override fun onWinStateChanged(event: AccessibilityEvent) { }
|
||||
|
||||
@AssertCalled(count = 1)
|
||||
@Suppress("deprecation")
|
||||
override fun onFocused(event: AccessibilityEvent) {
|
||||
nodeId = getSourceId(event)
|
||||
var node = createNodeInfo(nodeId)
|
||||
|
@ -239,7 +239,7 @@ class SelectionActionDelegateTest : BaseSessionTest() {
|
||||
private fun withClipboard(content: String = "", lambda: () -> Unit) {
|
||||
val oldClip = clipboard.primaryClip
|
||||
try {
|
||||
clipboard.primaryClip = ClipData.newPlainText("", content)
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText("", content))
|
||||
|
||||
sessionRule.addExternalDelegateUntilTestEnd(
|
||||
ClipboardManager.OnPrimaryClipChangedListener::class,
|
||||
@ -248,7 +248,7 @@ class SelectionActionDelegateTest : BaseSessionTest() {
|
||||
ClipboardManager.OnPrimaryClipChangedListener {})
|
||||
lambda()
|
||||
} finally {
|
||||
clipboard.primaryClip = oldClip ?: ClipData.newPlainText("", "")
|
||||
clipboard.setPrimaryClip(oldClip ?: ClipData.newPlainText("", ""))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user