Fix qute://gpl

This commit is contained in:
Florian Bruhin 2017-11-06 12:13:54 +01:00
parent 55815bd17b
commit 378b280f9a
3 changed files with 7 additions and 1 deletions

View File

@ -314,7 +314,7 @@ def qute_log(url):
@add_handler('gpl')
def qute_gpl(_url):
"""Handler for qute://gpl. Return HTML content as string."""
return 'text/html', utils.read_file('html/LICENSE.html')
return 'text/html', utils.read_file('html/license.html')
@add_handler('help')

View File

@ -217,3 +217,9 @@ Feature: Special qute:// pages
Scenario: Open qute://version
When I open qute://version
Then the page should contain the plaintext "Version info"
# qute://gpl
Scenario: Open qute://gpl
When I open qute://gpl
Then the page should contain the plaintext "GNU GENERAL PUBLIC LICENSE"