File: test_webkit_view.py

package info (click to toggle)
qutebrowser 3.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,432 kB
  • sloc: python: 72,411; javascript: 31,862; sh: 874; xml: 149; makefile: 52
file content (17 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later

import pytest
webview = pytest.importorskip('qutebrowser.browser.webkit.webview')


@pytest.fixture
def real_webview(webkit_tab, qtbot):
    wv = webview.WebView(win_id=0, tab_id=0, tab=webkit_tab, private=False)
    qtbot.add_widget(wv)
    return wv


def test_background_color_none(config_stub, real_webview):
    config_stub.val.colors.webpage.bg = None