URLs changed to new plugin addressing scheme
svn:keywords set fixed: shutdown - delay reboot/poweroff by some seconds to finish the web page before added: format_fs - show link to umount in case of active device added: new plugin "language_selection" fixed: recently introduced syntax error in 'network' added: "volume_props" mentions encryption support via "format_fs" (including link) updated: plugin-interface.txt fixed: broken test case for date plugin (caused by twill, I guess) added: "partition" plugin - better handling of config partition
This commit is contained in:
parent
7905fe7051
commit
80337411ae
49 changed files with 259 additions and 116 deletions
|
@ -4,7 +4,7 @@ class help(CryptoBoxPlugin.CryptoBoxPlugin):
|
|||
|
||||
pluginCapabilities = [ "menu" ]
|
||||
requestAuth = False
|
||||
rank = 50
|
||||
rank = 80
|
||||
|
||||
def doAction(self, page=""):
|
||||
'''prints the offline wikipage
|
||||
|
|
|
@ -7,23 +7,23 @@ class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
|||
'''help pages should be available in different languages'''
|
||||
|
||||
## check english help pages
|
||||
self.cmd.go(self.URL + "plugins/help?weblang=en")
|
||||
self.cmd.go(self.URL + "help?weblang=en")
|
||||
self.cmd.find("Table of Contents")
|
||||
self.cmd.find("Getting started")
|
||||
|
||||
self.cmd.go(self.URL + "plugins/help?weblang=de")
|
||||
self.cmd.go(self.URL + "help?weblang=de")
|
||||
self.cmd.find("Table of Contents")
|
||||
self.cmd.find("Wie geht es los")
|
||||
|
||||
self.cmd.go(self.URL + "plugins/help?weblang=si")
|
||||
self.cmd.go(self.URL + "help?weblang=si")
|
||||
self.assertRaises(TwillAssertionError, self.cmd.notfind, "Table of Contents")
|
||||
#TODO: add a slovene text here, as soon as the help is translated
|
||||
|
||||
self.cmd.go(self.URL + "plugins/help?weblang=fr")
|
||||
self.cmd.go(self.URL + "help?weblang=fr")
|
||||
self.assertRaises(TwillAssertionError, self.cmd.notfind, "Table of Contents")
|
||||
#TODO: add a french text here, as soon as the help is translated
|
||||
|
||||
## test a random language - it should fall back to english
|
||||
self.cmd.go(self.URL + "plugins/help?weblang=foobar")
|
||||
self.cmd.go(self.URL + "help?weblang=foobar")
|
||||
self.assertRaises(TwillAssertionError, self.cmd.notfind, "Table of Contents")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue