mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-20 08:37:50 -06:00
fix: render a single tab without a tab bar
142 tab bars held one tab, most of them "On the device" under a heading saying so. One item now stands alone, led by its label unless it names the place the text around already gives. The network route drops "Run the command on the computer" under the heading "From your computer", which keeps RetroPie in its word budget.
This commit is contained in:
1 parent
124e96cd09
commit
32cc1ce4fa
6 files changed
+39
-4
No files matched your search
@@ -404,7 +404,9 @@ class AnAppThatReadsAnyBios(unittest.TestCase):
|
||||
install = self.page[self.page.index("Install this emulator's files"):]
|
||||
install = install[:install.index("</details>")]
|
||||
self.assertRegex(install, r"With [^:]+: the installer finds")
|
||||
self.assertEqual(set(re.findall(r'<TabItem label="([^"]+)">', install)), {"On the device"})
|
||||
# One place to run it, so no tab bar (one tab offers no choice).
|
||||
self.assertNotIn("<Tabs", install)
|
||||
self.assertIn("curl -fsSL", install)
|
||||
nether = _pages("nethersx2")["nethersx2"]
|
||||
if "--emulator nethersx2" in nether:
|
||||
self.assertIn("With ", nether)
|
||||
|
||||
Reference in new issue
Block a user