mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 22:36:00 +00:00
Merge remote-tracking branch 'origin/main' into codex/unified-controller-input
This commit is contained in:
commit
aa3757eff1
41 files changed
+110
-165
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import com.droiddeck.launcher.frontend.Library
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class SteamLaunchOptionsVisibilityTest {
|
||||
private fun game(library: String = "main", source: String = Library.SOURCE_STEAM) =
|
||||
Library.SteamGame(42, "Test game", null, library, source = source)
|
||||
|
||||
@Test fun nativeSteamGamesExposeLaunchOptionsOutsideShortcutPicking() {
|
||||
assertTrue(canEditSteamLaunchOptions(game(), shortcutPicker = false))
|
||||
}
|
||||
|
||||
@Test fun pickerAddedAndStoreGamesDoNotExposeSteamLaunchOptions() {
|
||||
assertFalse(canEditSteamLaunchOptions(game(), shortcutPicker = true))
|
||||
assertFalse(canEditSteamLaunchOptions(game(library = Library.ADDED), shortcutPicker = false))
|
||||
assertFalse(canEditSteamLaunchOptions(game(source = "gog"), shortcutPicker = false))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user