From 0dc95aceed7e13527b5fafebaf659438700f6205 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 2 Jul 2017 14:44:23 +0200 Subject: [PATCH] Clean up old test_config.py --- .../old_configs/qutebrowser-v0.1.0.conf | 180 ----------- .../old_configs/qutebrowser-v0.1.1.conf | 181 ----------- .../old_configs/qutebrowser-v0.1.2.conf | 181 ----------- .../old_configs/qutebrowser-v0.1.4.conf | 176 ---------- .../old_configs/qutebrowser-v0.10.0.conf | 263 --------------- .../old_configs/qutebrowser-v0.2.0.conf | 200 ------------ .../old_configs/qutebrowser-v0.3.0.conf | 221 ------------- .../old_configs/qutebrowser-v0.4.0.conf | 226 ------------- .../old_configs/qutebrowser-v0.5.0.conf | 238 -------------- .../old_configs/qutebrowser-v0.6.0.conf | 239 -------------- .../old_configs/qutebrowser-v0.7.0.conf | 247 -------------- .../old_configs/qutebrowser-v0.8.0.conf | 246 -------------- .../old_configs/qutebrowser-v0.9.0.conf | 263 --------------- tests/unit/config/test_config.py | 304 +----------------- tests/unit/config/test_configtypes.py | 26 +- 15 files changed, 21 insertions(+), 3170 deletions(-) delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.1.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.1.1.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.1.2.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.1.4.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.10.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.2.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.3.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.4.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.5.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.6.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.7.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.8.0.conf delete mode 100644 tests/unit/config/old_configs/qutebrowser-v0.9.0.conf diff --git a/tests/unit/config/old_configs/qutebrowser-v0.1.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.1.0.conf deleted file mode 100644 index 5a6435c5e..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.1.0.conf +++ /dev/null @@ -1,180 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://www.duckduckgo.com -auto-search = naive -auto-save-config = true -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = window - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -message-timeout = 2000 -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -remove-finished-downloads = false - -[network] -do-not-track = true -accept-language = en-US,en -user-agent = -proxy = system -ssl-strict = ask -dns-prefetch = true - -[completion] -show = true -height = 50% -history-length = 100 -quick-complete = true -shrink = false - -[input] -timeout = 500 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -auto-hide = false -wrap = true -movable = true -close-mouse-button = middle -position = north -show-favicons = true -width = 20% -indicator-width = 3 -indicator-space = 3 -tabs-are-windows = false - -[storage] -download-directory = -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = default -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext,http://hosts-file.net/ad_servers.asp - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = ${duckduckgo} -duckduckgo = https://duckduckgo.com/?q={} -ddg = ${duckduckgo} -google = https://encrypted.google.com/search?q={} -g = ${google} -wikipedia = http://en.wikipedia.org/w/index.php?title=Special:Search&search={} -wiki = ${wikipedia} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.item.bg = ${completion.bg} -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -statusbar.bg = black -statusbar.fg = white -statusbar.bg.error = red -statusbar.bg.prompt = darkblue -statusbar.bg.insert = darkgreen -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.fg.even = white -tabs.fg.selected = white -tabs.bg.odd = grey -tabs.bg.even = darkgrey -tabs.bg.selected = black -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -tabs.seperator = #555555 -hints.fg = black -hints.fg.match = green -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -downloads.fg = #ffffff -downloads.bg.bar = black -downloads.bg.start = #0000aa -downloads.bg.stop = #00aa00 -downloads.bg.system = rgb -downloads.bg.error = red - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 12px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.1.1.conf b/tests/unit/config/old_configs/qutebrowser-v0.1.1.conf deleted file mode 100644 index 8796fad6c..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.1.1.conf +++ /dev/null @@ -1,181 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://www.duckduckgo.com -auto-search = naive -auto-save-config = true -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = window - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -message-timeout = 2000 -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -remove-finished-downloads = false - -[network] -do-not-track = true -accept-language = en-US,en -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -show = true -height = 50% -history-length = 100 -quick-complete = true -shrink = false - -[input] -timeout = 500 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -auto-hide = false -wrap = true -movable = true -close-mouse-button = middle -position = north -show-favicons = true -width = 20% -indicator-width = 3 -indicator-space = 3 -tabs-are-windows = false - -[storage] -download-directory = -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = default -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext,http://hosts-file.net/ad_servers.asp - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = ${duckduckgo} -duckduckgo = https://duckduckgo.com/?q={} -ddg = ${duckduckgo} -google = https://encrypted.google.com/search?q={} -g = ${google} -wikipedia = http://en.wikipedia.org/w/index.php?title=Special:Search&search={} -wiki = ${wikipedia} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.item.bg = ${completion.bg} -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -statusbar.bg = black -statusbar.fg = white -statusbar.bg.error = red -statusbar.bg.prompt = darkblue -statusbar.bg.insert = darkgreen -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.fg.even = white -tabs.fg.selected = white -tabs.bg.odd = grey -tabs.bg.even = darkgrey -tabs.bg.selected = black -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -tabs.seperator = #555555 -hints.fg = black -hints.fg.match = green -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -downloads.fg = #ffffff -downloads.bg.bar = black -downloads.bg.start = #0000aa -downloads.bg.stop = #00aa00 -downloads.bg.system = rgb -downloads.bg.error = red - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 12px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.1.2.conf b/tests/unit/config/old_configs/qutebrowser-v0.1.2.conf deleted file mode 100644 index d3a71b09f..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.1.2.conf +++ /dev/null @@ -1,181 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://www.duckduckgo.com -auto-search = naive -auto-save-config = true -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = window - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -message-timeout = 2000 -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -remove-finished-downloads = false - -[network] -do-not-track = true -accept-language = en-US,en -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -show = true -height = 50% -history-length = 100 -quick-complete = true -shrink = false - -[input] -timeout = 500 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -auto-hide = false -wrap = true -movable = true -close-mouse-button = middle -position = north -show-favicons = true -width = 20% -indicator-width = 3 -indicator-space = 3 -tabs-are-windows = false - -[storage] -download-directory = -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = default -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = ${duckduckgo} -duckduckgo = https://duckduckgo.com/?q={} -ddg = ${duckduckgo} -google = https://encrypted.google.com/search?q={} -g = ${google} -wikipedia = http://en.wikipedia.org/w/index.php?title=Special:Search&search={} -wiki = ${wikipedia} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.item.bg = ${completion.bg} -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -statusbar.bg = black -statusbar.fg = white -statusbar.bg.error = red -statusbar.bg.prompt = darkblue -statusbar.bg.insert = darkgreen -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.fg.even = white -tabs.fg.selected = white -tabs.bg.odd = grey -tabs.bg.even = darkgrey -tabs.bg.selected = black -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -tabs.seperator = #555555 -hints.fg = black -hints.fg.match = green -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -downloads.fg = #ffffff -downloads.bg.bar = black -downloads.bg.start = #0000aa -downloads.bg.stop = #00aa00 -downloads.bg.system = rgb -downloads.bg.error = red - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 12px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.1.4.conf b/tests/unit/config/old_configs/qutebrowser-v0.1.4.conf deleted file mode 100644 index 9cac158f6..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.1.4.conf +++ /dev/null @@ -1,176 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://www.duckduckgo.com -auto-search = naive -auto-save-config = true -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = window -log-javascript-console = false - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -message-timeout = 2000 -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -remove-finished-downloads = false - -[network] -do-not-track = true -accept-language = en-US,en -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -show = true -height = 50% -history-length = 100 -quick-complete = true -shrink = false - -[input] -timeout = 500 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -auto-hide = false -wrap = true -movable = true -close-mouse-button = middle -position = north -show-favicons = true -width = 20% -indicator-width = 3 -indicator-space = 3 -tabs-are-windows = false - -[storage] -download-directory = -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = default -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.item.bg = ${completion.bg} -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -statusbar.bg = black -statusbar.fg = white -statusbar.bg.error = red -statusbar.bg.prompt = darkblue -statusbar.bg.insert = darkgreen -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.fg.even = white -tabs.fg.selected = white -tabs.bg.odd = grey -tabs.bg.even = darkgrey -tabs.bg.selected = black -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -tabs.seperator = #555555 -hints.fg = black -hints.fg.match = green -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -downloads.fg = #ffffff -downloads.bg.bar = black -downloads.bg.start = #0000aa -downloads.bg.stop = #00aa00 -downloads.bg.system = rgb -downloads.bg.error = red - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 12px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.10.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.10.0.conf deleted file mode 100644 index 139954247..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.10.0.conf +++ /dev/null @@ -1,263 +0,0 @@ - - -[general] -ignore-case = smart -startpage = https://start.duckduckgo.com -yank-ignored-url-parameters = ref,utm_source,utm_medium,utm_campaign,utm_term,utm_content -default-open-dispatcher = -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -new-instance-open-target.window = last-focused -log-javascript-console = debug -save-session = false -session-default-name = -url-incdec-segments = path,query - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -status-position = bottom -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -zoom-text-only = false -frame-flattening = false -user-stylesheet = -hide-scrollbar = true -css-media-type = -smooth-scrolling = false -remove-finished-downloads = -1 -hide-statusbar = false -statusbar-padding = 1,1,0,0 -window-title-format = {perc}{title}{title_sep}qutebrowser -modal-js-dialog = false -hide-wayland-decoration = false -keyhint-blacklist = -prompt-radius = 8 -prompt-filebrowser = true - -[network] -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true -custom-headers = -netrc-file = - -[completion] -show = always -download-path-suggestion = path -timestamp-format = %Y-%m-%d -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false -scrollbar-width = 12 -scrollbar-padding = 2 - -[input] -timeout = 500 -partial-timeout = 5000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = next -new-tab-position = next -new-tab-position-explicit = last -last-close = ignore -show = always -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = top -show-favicons = true -width = 20% -indicator-width = 3 -tabs-are-windows = false -title-format = {index}: {title} -title-alignment = left -mousewheel-tab-switching = true -padding = 0,0,5,5 -indicator-padding = 2,2,0,4 - -[storage] -download-directory = -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = true -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -media-capture = ask -javascript-can-open-windows-automatically = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = https://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true -host-blocking-whitelist = piwik.org -enable-pdfjs = false - -[hints] -border = 1px solid #E3BE23 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -dictionary = /usr/share/dict/words -auto-follow = unique-match -auto-follow-timeout = 0 -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b -find-implementation = python -hide-unmatched-rapid-hints = true - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -completion.scrollbar.fg = ${completion.fg} -completion.scrollbar.bg = ${completion.bg} -statusbar.fg = white -statusbar.bg = black -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = white -statusbar.url.fg.success.https = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected.odd = white -tabs.bg.selected.odd = black -tabs.fg.selected.even = ${tabs.fg.selected.odd} -tabs.bg.selected.even = ${tabs.bg.selected.odd} -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 247, 133, 0.8), stop:1 rgba(255, 197, 66, 0.8)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white -keyhint.fg = #FFFFFF -keyhint.fg.suffix = #FFFF00 -keyhint.bg = rgba(0, 0, 0, 80%) -messages.fg.error = white -messages.bg.error = red -messages.border.error = #bb0000 -messages.fg.warning = white -messages.bg.warning = darkorange -messages.border.warning = #d47300 -messages.fg.info = white -messages.bg.info = black -messages.border.info = #333333 -prompts.fg = white -prompts.bg = darkblue -prompts.selected.bg = #308cc6 - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -completion.category = bold ${completion} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px ${_monospace} -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = -keyhint = 8pt ${_monospace} -messages.error = 8pt ${_monospace} -messages.warning = 8pt ${_monospace} -messages.info = 8pt ${_monospace} -prompts = 8pt sans-serif diff --git a/tests/unit/config/old_configs/qutebrowser-v0.2.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.2.0.conf deleted file mode 100644 index c8a22e017..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.2.0.conf +++ /dev/null @@ -1,200 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://www.duckduckgo.com -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = window -log-javascript-console = false -save-session = false -session-default-name = - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = north -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -remove-finished-downloads = false -hide-statusbar = false -window-title-format = {perc}{title}{title_sep}qutebrowser -hide-mouse-cursor = false - -[network] -do-not-track = true -accept-language = en-US,en -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -download-path-suggestion = path -timestamp-format = %Y-%m-%d -show = true -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false - -[input] -timeout = 500 -partial-timeout = 1000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -hide-auto = false -hide-always = false -wrap = true -movable = true -close-mouse-button = middle -position = north -show-favicons = true -width = 20% -indicator-width = 3 -indicator-space = 3 -tabs-are-windows = false -title-format = {index}: {title} - -[storage] -download-directory = -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -geolocation = ask -notifications = ask -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = default -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -statusbar.bg = black -statusbar.fg = white -statusbar.bg.error = red -statusbar.bg.warning = darkorange -statusbar.bg.prompt = darkblue -statusbar.bg.insert = darkgreen -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.fg.even = white -tabs.fg.selected = white -tabs.bg.odd = grey -tabs.bg.even = darkgrey -tabs.bg.selected = black -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.fg.match = green -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -downloads.fg = #ffffff -downloads.bg.bar = black -downloads.bg.start = #0000aa -downloads.bg.stop = #00aa00 -downloads.bg.system = rgb -downloads.bg.error = red - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 12px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.3.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.3.0.conf deleted file mode 100644 index 1869edacf..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.3.0.conf +++ /dev/null @@ -1,221 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://www.duckduckgo.com -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -log-javascript-console = false -save-session = false -session-default-name = - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = north -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -smooth-scrolling = false -remove-finished-downloads = false -hide-statusbar = false -window-title-format = {perc}{title}{title_sep}qutebrowser -hide-mouse-cursor = false -modal-js-dialog = false - -[network] -do-not-track = true -accept-language = en-US,en -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -auto-open = true -download-path-suggestion = path -timestamp-format = %Y-%m-%d -show = true -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false - -[input] -timeout = 500 -partial-timeout = 1000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -hide-auto = false -hide-always = false -wrap = true -movable = true -close-mouse-button = middle -position = north -show-favicons = true -width = 20% -indicator-width = 3 -indicator-space = 3 -tabs-are-windows = false -title-format = {index}: {title} -mousewheel-tab-switching = true - -[storage] -download-directory = -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = true -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -statusbar.fg = white -statusbar.bg = black -statusbar.fg.error = ${statusbar.fg} -statusbar.bg.error = red -statusbar.fg.warning = ${statusbar.fg} -statusbar.bg.warning = darkorange -statusbar.fg.prompt = ${statusbar.fg} -statusbar.bg.prompt = darkblue -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected = white -tabs.bg.selected = black -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 12px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.4.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.4.0.conf deleted file mode 100644 index 7551c9f77..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.4.0.conf +++ /dev/null @@ -1,226 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://www.duckduckgo.com -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -log-javascript-console = false -save-session = false -session-default-name = - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -smooth-scrolling = false -remove-finished-downloads = false -hide-statusbar = false -statusbar-padding = 1,1,0,0 -window-title-format = {perc}{title}{title_sep}qutebrowser -hide-mouse-cursor = false -modal-js-dialog = false - -[network] -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -auto-open = true -download-path-suggestion = path -timestamp-format = %Y-%m-%d -show = true -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false - -[input] -timeout = 500 -partial-timeout = 1000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -show = always -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = top -show-favicons = true -width = 20% -indicator-width = 3 -tabs-are-windows = false -title-format = {index}: {title} -mousewheel-tab-switching = true -padding = 0,0,5,5 -indicator-padding = 2,2,0,4 - -[storage] -download-directory = -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = true -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -statusbar.fg = white -statusbar.bg = black -statusbar.fg.error = ${statusbar.fg} -statusbar.bg.error = red -statusbar.fg.warning = ${statusbar.fg} -statusbar.bg.warning = darkorange -statusbar.fg.prompt = ${statusbar.fg} -statusbar.bg.prompt = darkblue -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected = white -tabs.bg.selected = black -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.5.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.5.0.conf deleted file mode 100644 index 1b6346d1e..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.5.0.conf +++ /dev/null @@ -1,238 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://duckduckgo.com -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -log-javascript-console = debug -save-session = false -session-default-name = -url-incdec-segments = path,query - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -smooth-scrolling = false -remove-finished-downloads = -1 -hide-statusbar = false -statusbar-padding = 1,1,0,0 -window-title-format = {perc}{title}{title_sep}qutebrowser -hide-mouse-cursor = false -modal-js-dialog = false -hide-wayland-decoration = false - -[network] -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -auto-open = true -download-path-suggestion = path -timestamp-format = %Y-%m-%d -show = true -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false -scrollbar-width = 12 -scrollbar-padding = 2 - -[input] -timeout = 500 -partial-timeout = 1000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -show = always -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = top -show-favicons = true -width = 20% -indicator-width = 3 -tabs-are-windows = false -title-format = {index}: {title} -title-alignment = left -mousewheel-tab-switching = true -padding = 0,0,5,5 -indicator-padding = 2,2,0,4 - -[storage] -download-directory = -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = true -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true -host-blocking-whitelist = piwik.org -enable-pdfjs = false - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -completion.scrollbar.fg = ${completion.fg} -completion.scrollbar.bg = ${completion.bg} -statusbar.fg = white -statusbar.bg = black -statusbar.fg.error = ${statusbar.fg} -statusbar.bg.error = red -statusbar.fg.warning = ${statusbar.fg} -statusbar.bg.warning = darkorange -statusbar.fg.prompt = ${statusbar.fg} -statusbar.bg.prompt = darkblue -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = white -statusbar.url.fg.success.https = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected.odd = white -tabs.bg.selected.odd = black -tabs.fg.selected.even = ${tabs.fg.selected.odd} -tabs.bg.selected.even = ${tabs.bg.selected.odd} -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.6.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.6.0.conf deleted file mode 100644 index f8b42815b..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.6.0.conf +++ /dev/null @@ -1,239 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://duckduckgo.com -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -log-javascript-console = debug -save-session = false -session-default-name = -url-incdec-segments = path,query - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -smooth-scrolling = false -remove-finished-downloads = -1 -hide-statusbar = false -statusbar-padding = 1,1,0,0 -window-title-format = {perc}{title}{title_sep}qutebrowser -hide-mouse-cursor = false -modal-js-dialog = false -hide-wayland-decoration = false - -[network] -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true - -[completion] -auto-open = true -download-path-suggestion = path -timestamp-format = %Y-%m-%d -show = true -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false -scrollbar-width = 12 -scrollbar-padding = 2 - -[input] -timeout = 500 -partial-timeout = 1000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -show = always -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = top -show-favicons = true -width = 20% -indicator-width = 3 -tabs-are-windows = false -title-format = {index}: {title} -title-alignment = left -mousewheel-tab-switching = true -padding = 0,0,5,5 -indicator-padding = 2,2,0,4 - -[storage] -download-directory = -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = true -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true -host-blocking-whitelist = piwik.org -enable-pdfjs = false - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -dictionary = /usr/share/dict/words -auto-follow = true -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -completion.scrollbar.fg = ${completion.fg} -completion.scrollbar.bg = ${completion.bg} -statusbar.fg = white -statusbar.bg = black -statusbar.fg.error = ${statusbar.fg} -statusbar.bg.error = red -statusbar.fg.warning = ${statusbar.fg} -statusbar.bg.warning = darkorange -statusbar.fg.prompt = ${statusbar.fg} -statusbar.bg.prompt = darkblue -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = white -statusbar.url.fg.success.https = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected.odd = white -tabs.bg.selected.odd = black -tabs.fg.selected.even = ${tabs.fg.selected.odd} -tabs.bg.selected.even = ${tabs.bg.selected.odd} -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = diff --git a/tests/unit/config/old_configs/qutebrowser-v0.7.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.7.0.conf deleted file mode 100644 index 9fa9e626a..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.7.0.conf +++ /dev/null @@ -1,247 +0,0 @@ - - -[general] -ignore-case = smart -wrap-search = true -startpage = https://duckduckgo.com -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -log-javascript-console = debug -save-session = false -session-default-name = -url-incdec-segments = path,query - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -display-statusbar-messages = false -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -smooth-scrolling = false -remove-finished-downloads = -1 -hide-statusbar = false -statusbar-padding = 1,1,0,0 -window-title-format = {perc}{title}{title_sep}qutebrowser -hide-mouse-cursor = false -modal-js-dialog = false -hide-wayland-decoration = false -keyhint-blacklist = - -[network] -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true -custom-headers = - -[completion] -auto-open = true -download-path-suggestion = path -timestamp-format = %Y-%m-%d -show = true -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false -scrollbar-width = 12 -scrollbar-padding = 2 - -[input] -timeout = 500 -partial-timeout = 5000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -show = always -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = top -show-favicons = true -width = 20% -indicator-width = 3 -tabs-are-windows = false -title-format = {index}: {title} -title-alignment = left -mousewheel-tab-switching = true -padding = 0,0,5,5 -indicator-padding = 2,2,0,4 - -[storage] -download-directory = -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = false -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true -host-blocking-whitelist = piwik.org -enable-pdfjs = false - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -dictionary = /usr/share/dict/words -auto-follow = true -auto-follow-timeout = 0 -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b -find-implementation = javascript - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -completion.scrollbar.fg = ${completion.fg} -completion.scrollbar.bg = ${completion.bg} -statusbar.fg = white -statusbar.bg = black -statusbar.fg.error = ${statusbar.fg} -statusbar.bg.error = red -statusbar.fg.warning = ${statusbar.fg} -statusbar.bg.warning = darkorange -statusbar.fg.prompt = ${statusbar.fg} -statusbar.bg.prompt = darkblue -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = white -statusbar.url.fg.success.https = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected.odd = white -tabs.bg.selected.odd = black -tabs.fg.selected.even = ${tabs.fg.selected.odd} -tabs.bg.selected.even = ${tabs.bg.selected.odd} -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white -keyhint.fg = #FFFFFF -keyhint.fg.suffix = #FFFF00 -keyhint.bg = rgba(0, 0, 0, 80%) - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = -keyhint = 8pt ${_monospace} diff --git a/tests/unit/config/old_configs/qutebrowser-v0.8.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.8.0.conf deleted file mode 100644 index ee0c2ebc9..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.8.0.conf +++ /dev/null @@ -1,246 +0,0 @@ - - -[general] -ignore-case = smart -startpage = https://duckduckgo.com -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -log-javascript-console = debug -save-session = false -session-default-name = -url-incdec-segments = path,query - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -status-position = bottom -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -zoom-text-only = false -frame-flattening = false -user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } -css-media-type = -smooth-scrolling = false -remove-finished-downloads = -1 -hide-statusbar = false -statusbar-padding = 1,1,0,0 -window-title-format = {perc}{title}{title_sep}qutebrowser -hide-mouse-cursor = false -modal-js-dialog = false -hide-wayland-decoration = false -keyhint-blacklist = - -[network] -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true -custom-headers = - -[completion] -auto-open = true -download-path-suggestion = path -timestamp-format = %Y-%m-%d -show = true -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false -scrollbar-width = 12 -scrollbar-padding = 2 - -[input] -timeout = 500 -partial-timeout = 5000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = last -last-close = ignore -show = always -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = top -show-favicons = true -width = 20% -indicator-width = 3 -tabs-are-windows = false -title-format = {index}: {title} -title-alignment = left -mousewheel-tab-switching = true -padding = 0,0,5,5 -indicator-padding = 2,2,0,4 - -[storage] -download-directory = -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = false -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -javascript-can-open-windows = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true -host-blocking-whitelist = piwik.org -enable-pdfjs = false - -[hints] -border = 1px solid #E3BE23 -opacity = 0.7 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -dictionary = /usr/share/dict/words -auto-follow = true -auto-follow-timeout = 0 -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b -find-implementation = javascript - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -completion.scrollbar.fg = ${completion.fg} -completion.scrollbar.bg = ${completion.bg} -statusbar.fg = white -statusbar.bg = black -statusbar.fg.error = ${statusbar.fg} -statusbar.bg.error = red -statusbar.fg.warning = ${statusbar.fg} -statusbar.bg.warning = darkorange -statusbar.fg.prompt = ${statusbar.fg} -statusbar.bg.prompt = darkblue -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = white -statusbar.url.fg.success.https = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected.odd = white -tabs.bg.selected.odd = black -tabs.fg.selected.even = ${tabs.fg.selected.odd} -tabs.bg.selected.even = ${tabs.bg.selected.odd} -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white -keyhint.fg = #FFFFFF -keyhint.fg.suffix = #FFFF00 -keyhint.bg = rgba(0, 0, 0, 80%) - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px Monospace -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = -keyhint = 8pt ${_monospace} diff --git a/tests/unit/config/old_configs/qutebrowser-v0.9.0.conf b/tests/unit/config/old_configs/qutebrowser-v0.9.0.conf deleted file mode 100644 index 8949fd417..000000000 --- a/tests/unit/config/old_configs/qutebrowser-v0.9.0.conf +++ /dev/null @@ -1,263 +0,0 @@ - - -[general] -ignore-case = smart -startpage = https://start.duckduckgo.com -yank-ignored-url-parameters = ref,utm_source,utm_medium,utm_campaign,utm_term,utm_content -default-open-dispatcher = -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = gvim -f "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = false -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -new-instance-open-target.window = last-focused -log-javascript-console = debug -save-session = false -session-default-name = -url-incdec-segments = path,query - -[ui] -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -status-position = bottom -message-timeout = 2000 -message-unfocused = false -confirm-quit = never -zoom-text-only = false -frame-flattening = false -user-stylesheet = -hide-scrollbar = true -css-media-type = -smooth-scrolling = false -remove-finished-downloads = -1 -hide-statusbar = false -statusbar-padding = 1,1,0,0 -window-title-format = {perc}{title}{title_sep}qutebrowser -modal-js-dialog = false -hide-wayland-decoration = false -keyhint-blacklist = -prompt-radius = 8 -prompt-filebrowser = true - -[network] -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true -custom-headers = -netrc-file = - -[completion] -show = always -download-path-suggestion = path -timestamp-format = %Y-%m-%d -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false -scrollbar-width = 12 -scrollbar-padding = 2 - -[input] -timeout = 500 -partial-timeout = 5000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -background-tabs = false -select-on-remove = next -new-tab-position = next -new-tab-position-explicit = last -last-close = ignore -show = always -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = top -show-favicons = true -width = 20% -indicator-width = 3 -tabs-are-windows = false -title-format = {index}: {title} -title-alignment = left -mousewheel-tab-switching = true -padding = 0,0,5,5 -indicator-padding = 2,2,0,4 - -[storage] -download-directory = -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = false -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -media-capture = ask -javascript-can-open-windows-automatically = false -javascript-can-close-windows = false -javascript-can-access-clipboard = false -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = https://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true -host-blocking-whitelist = piwik.org -enable-pdfjs = false - -[hints] -border = 1px solid #E3BE23 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -dictionary = /usr/share/dict/words -auto-follow = unique-match -auto-follow-timeout = 0 -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b -find-implementation = python -hide-unmatched-rapid-hints = true - -[searchengines] -DEFAULT = https://duckduckgo.com/?q={} - -[aliases] - -[colors] -completion.fg = white -completion.bg = #333333 -completion.alternate-bg = #444444 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = black -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = black -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -completion.scrollbar.fg = ${completion.fg} -completion.scrollbar.bg = ${completion.bg} -statusbar.fg = white -statusbar.bg = black -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = darkgreen -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = purple -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #a12dff -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = white -statusbar.url.fg.success.https = lime -statusbar.url.fg.error = orange -statusbar.url.fg.warn = yellow -statusbar.url.fg.hover = aqua -tabs.fg.odd = white -tabs.bg.odd = grey -tabs.fg.even = white -tabs.bg.even = darkgrey -tabs.fg.selected.odd = white -tabs.bg.selected.odd = black -tabs.fg.selected.even = ${tabs.fg.selected.odd} -tabs.bg.selected.even = ${tabs.bg.selected.odd} -tabs.bg.bar = #555555 -tabs.indicator.start = #0000aa -tabs.indicator.stop = #00aa00 -tabs.indicator.error = #ff0000 -tabs.indicator.system = rgb -hints.fg = black -hints.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 247, 133, 0.8), stop:1 rgba(255, 197, 66, 0.8)) -hints.fg.match = green -downloads.bg.bar = black -downloads.fg.start = white -downloads.bg.start = #0000aa -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #00aa00 -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = red -webpage.bg = white -keyhint.fg = #FFFFFF -keyhint.fg.suffix = #FFFF00 -keyhint.bg = rgba(0, 0, 0, 80%) -messages.fg.error = white -messages.bg.error = red -messages.border.error = #bb0000 -messages.fg.warning = white -messages.bg.warning = darkorange -messages.border.warning = #d47300 -messages.fg.info = white -messages.bg.info = black -messages.border.info = #333333 -prompts.fg = white -prompts.bg = darkblue -prompts.selected.bg = #308cc6 - -[fonts] -_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -completion.category = bold ${completion} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px ${_monospace} -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = -keyhint = 8pt ${_monospace} -messages.error = 8pt ${_monospace} -messages.warning = 8pt ${_monospace} -messages.info = 8pt ${_monospace} -prompts = 8pt sans-serif diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py index da5daea10..eea431644 100644 --- a/tests/unit/config/test_config.py +++ b/tests/unit/config/test_config.py @@ -18,306 +18,4 @@ """Tests for qutebrowser.config.config.""" -import os -import os.path -import configparser -import collections -import shutil - -from PyQt5.QtGui import QColor -import pytest - -import qutebrowser -from qutebrowser.config import config, configexc, configdata -from qutebrowser.config.parsers import keyconf -from qutebrowser.commands import runners - - -class TestConfigParser: - - """Test reading of ConfigParser.""" - - Objects = collections.namedtuple('Objects', ['cp', 'cfg']) - - @pytest.fixture - def objects(self, tmpdir): - cp = configparser.ConfigParser(interpolation=None, - comment_prefixes='#') - cp.optionxform = lambda opt: opt # be case-insensitive - cfg = config.ConfigManager() - cfg.read(str(tmpdir), 'qutebrowser.conf') - return self.Objects(cp=cp, cfg=cfg) - - @pytest.mark.parametrize('config, section, option, value', [ - # Simple option without transformation - ({'general': {'ignore-case': 'false'}}, - 'general', 'ignore-case', False), - # Transformed section with old name - ({'permissions': {'allow-plugins': 'true'}}, - 'content', 'allow-plugins', True), - # Transformed section with new name - ({'content': {'allow-plugins': 'true'}}, - 'content', 'allow-plugins', True), - # Transformed option with old name - ({'colors': {'tab.fg.odd': 'pink'}}, - 'colors', 'tabs.fg.odd', QColor('pink')), - # Transformed option with new name - ({'colors': {'tabs.fg.odd': 'pink'}}, - 'colors', 'tabs.fg.odd', QColor('pink')), - ]) - def test_get(self, objects, config, section, option, value): - objects.cp.read_dict(config) - objects.cfg._from_cp(objects.cp) - assert objects.cfg.get(section, option) == value - - @pytest.mark.parametrize('config', [ - {'general': {'ignore-case': 'invalid'}}, - {'general': {'ignore-case': 'smart', - 'private-browsing': '${ignore-case}'}}, - ]) - def test_failing_validation(self, objects, config): - objects.cp.read_dict(config) - objects.cfg._from_cp(objects.cp) - with pytest.raises(configexc.ValidationError): - objects.cfg._validate_all() - - @pytest.mark.parametrize('config, exception', [ - # Invalid interpolation syntax - ({'general': {'ignore-case': '${'}}, - configexc.InterpolationSyntaxError), - # Invalid section - ({'foo': {'bar': 'baz'}}, configexc.NoSectionError), - # Invalid option - ({'general': {'bar': 'baz'}}, configexc.NoOptionError), - ]) - def test_invalid_from_cp(self, objects, config, exception): - objects.cp.read_dict(config) - with pytest.raises(exception): - objects.cfg._from_cp(objects.cp) - - @pytest.mark.parametrize('config, sect, opt, exception', [ - # Invalid section - ({'foo': {'bar': 'baz'}}, 'foo', 'bar', configexc.NoSectionError), - # Invalid option - ({'general': {'bar': 'baz'}}, 'general', 'baz', - configexc.NoOptionError), - ]) - def test_invalid_relaxed(self, objects, config, sect, opt, exception): - objects.cp.read_dict(config) - objects.cfg._from_cp(objects.cp, relaxed=True) - with pytest.raises(exception): - objects.cfg.get(sect, opt) - - @pytest.mark.parametrize('old_sect, new_sect', - config.ConfigManager.RENAMED_SECTIONS.items()) - def test_renamed_sections(self, old_sect, new_sect): - """Make sure renamed sections don't exist anymore.""" - assert old_sect not in configdata.DATA - assert new_sect in configdata.DATA - - @pytest.mark.parametrize('old_tuple, new_option', - sorted(config.ConfigManager.RENAMED_OPTIONS.items())) - def test_renamed_options(self, old_tuple, new_option): - """Make sure renamed options exist under the new name.""" - section, old_option = old_tuple - assert old_option not in configdata.DATA[section] - assert new_option in configdata.DATA[section] - - @pytest.mark.parametrize('section, option', - config.ConfigManager.DELETED_OPTIONS) - def test_deleted_options(self, section, option): - """Make sure renamed options don't exist anymore.""" - assert option not in configdata.DATA[section] - - def test_config_reading_with_deleted_options(self, objects): - """Test an invalid option with relaxed=True.""" - objects.cp.read_dict({ - 'general': collections.OrderedDict( - [('wrap-search', 'true'), ('save-session', 'true')]) - }) - objects.cfg._from_cp(objects.cp) - with pytest.raises(configexc.NoOptionError): - objects.cfg.get('general', 'wrap-search') - assert objects.cfg.get('general', 'save-session') - - -class TestKeyConfigParser: - - """Test config.parsers.keyconf.KeyConfigParser.""" - - def test_cmd_binding(self, cmdline_test, config_stub, tmpdir): - """Test various command bindings. - - See https://github.com/qutebrowser/qutebrowser/issues/615 - - Args: - cmdline_test: A pytest fixture which provides testcases. - """ - config_stub.data = {'aliases': []} - kcp = keyconf.KeyConfigParser(str(tmpdir), 'keys.conf') - kcp._cur_section = 'normal' - if cmdline_test.valid: - kcp._read_command(cmdline_test.cmd) - else: - with pytest.raises(keyconf.KeyConfigError): - kcp._read_command(cmdline_test.cmd) - - @pytest.mark.parametrize('rgx', [rgx for rgx, _repl - in configdata.CHANGED_KEY_COMMANDS]) - def test_default_config_no_deprecated(self, rgx): - """Make sure the default config contains no deprecated commands.""" - for sect in configdata.KEY_DATA.values(): - for command in sect: - assert rgx.match(command) is None - - @pytest.mark.parametrize( - 'old, new_expected', - [ - ('open -t about:blank', 'open -t'), - ('open -w about:blank', 'open -w'), - ('open -b about:blank', 'open -b'), - ('open about:blank', None), - ('open -t example.com', None), - - ('download-page', 'download'), - ('cancel-download', 'download-cancel'), - - ('search ""', 'clear-keychain ;; search ;; fullscreen --leave'), - ("search ''", 'clear-keychain ;; search ;; fullscreen --leave'), - ("search", 'clear-keychain ;; search ;; fullscreen --leave'), - ("search ;; foobar", None), - ('search "foo"', None), - - ('set-cmd-text "foo bar"', 'set-cmd-text foo bar'), - ("set-cmd-text 'foo bar'", 'set-cmd-text foo bar'), - ('set-cmd-text foo bar', None), - ('set-cmd-text "foo bar "', 'set-cmd-text -s foo bar'), - ("set-cmd-text 'foo bar '", 'set-cmd-text -s foo bar'), - - ('hint links rapid', 'hint --rapid links tab-bg'), - ('hint links rapid-win', 'hint --rapid links window'), - - ('scroll -50 0', 'scroll left'), - ('scroll 0 50', 'scroll down'), - ('scroll 0 -50', 'scroll up'), - ('scroll 50 0', 'scroll right'), - ('scroll -50 10', 'scroll-px -50 10'), - ('scroll 50 50', 'scroll-px 50 50'), - ('scroll 0 0', 'scroll-px 0 0'), - ('scroll 23 42', 'scroll-px 23 42'), - - ('search ;; clear-keychain', - 'clear-keychain ;; search ;; fullscreen --leave'), - ('search;;clear-keychain', - 'clear-keychain ;; search ;; fullscreen --leave'), - ('search;;foo', None), - ('clear-keychain ;; search', - 'clear-keychain ;; search ;; fullscreen --leave'), - ('leave-mode ;; foo', None), - ('search ;; clear-keychain', - 'clear-keychain ;; search ;; fullscreen --leave'), - - ('download-remove --all', 'download-clear'), - - ('hint links fill ":open {hint-url}"', - 'hint links fill :open {hint-url}'), - ('hint links fill ":open -t {hint-url}"', - 'hint links fill :open -t {hint-url}'), - - ('yank-selected', 'yank selection'), - ('yank-selected --sel', 'yank selection --sel'), - ('yank-selected -p', 'yank selection -s'), - - ('yank -t', 'yank title'), - ('yank -ts', 'yank title -s'), - ('yank -d', 'yank domain'), - ('yank -ds', 'yank domain -s'), - ('yank -p', 'yank pretty-url'), - ('yank -ps', 'yank pretty-url -s'), - - ('paste', 'open -- {clipboard}'), - ('paste -s', 'open -- {primary}'), - ('paste -t', 'open -t -- {clipboard}'), - ('paste -ws', 'open -w -- {primary}'), - - ('open {clipboard}', 'open -- {clipboard}'), - ('open -t {clipboard}', 'open -t -- {clipboard}'), - ('open -b {primary}', 'open -b -- {primary}'), - - ('set-cmd-text -s :search', 'set-cmd-text /'), - ('set-cmd-text -s :search -r', 'set-cmd-text ?'), - ('set-cmd-text -s :', 'set-cmd-text :'), - ('set-cmd-text -s :set keybind', 'set-cmd-text -s :bind'), - - ('prompt-yes', 'prompt-accept yes'), - ('prompt-no', 'prompt-accept no'), - - ('tab-close -l', 'tab-close --prev'), - ('tab-close --left', 'tab-close --prev'), - ('tab-close -r', 'tab-close --next'), - ('tab-close --right', 'tab-close --next'), - - ('tab-only -l', 'tab-only --prev'), - ('tab-only --left', 'tab-only --prev'), - ('tab-only -r', 'tab-only --next'), - ('tab-only --right', 'tab-only --next'), - ] - ) - def test_migrations(self, old, new_expected): - """Make sure deprecated commands get migrated correctly.""" - if new_expected is None: - new_expected = old - new = old - for rgx, repl in configdata.CHANGED_KEY_COMMANDS: - if rgx.match(new): - new = rgx.sub(repl, new) - break - assert new == new_expected - - -@pytest.mark.usefixtures('config_tmpdir') -@pytest.mark.integration -class TestDefaultConfig: - - """Test validating of the default config.""" - - @pytest.mark.usefixtures('qapp') - def test_default_config(self, tmpdir): - """Test validating of the default config.""" - conf = config.ConfigManager() - conf.read(str(tmpdir), 'qutebrowser.conf') - conf._validate_all() - - def test_default_key_config(self, tmpdir): - """Test validating of the default key config.""" - # We import qutebrowser.app so the cmdutils.register decorators run. - import qutebrowser.app # pylint: disable=unused-variable - conf = keyconf.KeyConfigParser(str(tmpdir), 'keys.conf') - runner = runners.CommandRunner(win_id=0) - for sectname in configdata.KEY_DATA: - for cmd in conf.get_bindings_for(sectname).values(): - runner.parse(cmd) - - def test_upgrade_version(self): - """Fail when the qutebrowser version changed. - - The aim of this is to remind us to add a new file to old_configs. - - If the config file of the current release didn't change compared to the - last one in old_configs, just increment the version here. - - If it did change, place a new qutebrowser-vx.y.z.conf in old_configs - and then increment the version. - """ - assert qutebrowser.__version__ == '0.10.1' - - @pytest.mark.parametrize('filename', - os.listdir(os.path.join(os.path.dirname(__file__), 'old_configs')), - ids=os.path.basename) - def test_old_config(self, qapp, tmpdir, filename): - """Check if upgrading old configs works correctly.""" - full_path = os.path.join(os.path.dirname(__file__), 'old_configs', - filename) - shutil.copy(full_path, str(tmpdir / 'qutebrowser.conf')) - conf = config.ConfigManager() - conf.read(str(tmpdir), 'qutebrowser.conf') +from qutebrowser.config import config diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index dcb7733e2..f4bd98c46 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -1027,19 +1027,23 @@ class TestPercOrInt: class TestCommand: - @pytest.fixture(autouse=True) - def patch(self, monkeypatch, stubs): + @pytest.fixture + def patch_cmdutils(self, monkeypatch, stubs): """Patch the cmdutils module to provide fake commands.""" cmd_utils = stubs.FakeCmdUtils({ 'cmd1': stubs.FakeCommand(desc="desc 1"), 'cmd2': stubs.FakeCommand(desc="desc 2")}) monkeypatch.setattr(configtypes, 'cmdutils', cmd_utils) + monkeypatch.setattr('qutebrowser.commands.runners.cmdutils', cmd_utils) + + @pytest.fixture(autouse=True) + def patch_aliases(self, monkeypatch): + """Patch the aliases setting.""" # FIXME:conf use some kind of config_stub here # also remove the no branch pragma from configtypes.Command then ns = types.SimpleNamespace() ns.aliases = {'alias': 'cmd1'} monkeypatch.setattr('qutebrowser.config.config.val', ns) - monkeypatch.setattr('qutebrowser.commands.runners.cmdutils', cmd_utils) @pytest.fixture def klass(self): @@ -1047,16 +1051,26 @@ class TestCommand: @pytest.mark.parametrize('val', ['cmd1', 'cmd2', 'cmd1 foo bar', 'cmd2 baz fish', 'alias foo']) - def test_to_py_valid(self, klass, val): + def test_to_py_valid(self, patch_cmdutils, klass, val): expected = None if not val else val assert klass().to_py(val) == expected @pytest.mark.parametrize('val', ['cmd3', 'cmd3 foo bar', ' ']) - def test_to_py_invalid(self, klass, val): + def test_to_py_invalid(self, patch_cmdutils, klass, val): with pytest.raises(configexc.ValidationError): klass().to_py(val) - def test_complete(self, klass): + def test_cmdline(self, klass, cmdline_test): + """Test some commandlines from the cmdline_test fixture.""" + import qutebrowser.app # to run decorators + typ = klass() + if cmdline_test.valid: + typ.to_py(cmdline_test.cmd) + else: + with pytest.raises(configexc.ValidationError): + typ.to_py(cmdline_test.cmd) + + def test_complete(self, patch_cmdutils, klass): """Test completion.""" items = klass().complete() assert len(items) == 2