Falkon Develop
Cross-platform Qt-based web browser
sitesettingstest.h
Go to the documentation of this file.
1/* ============================================================
2 * Falkon - Qt web browser
3 * Copyright (C) 2024 Juraj Oravec <jurajoravec@mailo.com>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * ============================================================ */
18
19#ifndef SITESETTINGSTEST_H
20#define SITESETTINGSTEST_H
21
22#include "sitesettingsmanager.h"
23
24#include <QObject>
25
26class WebPage;
27class WebTab;
28
29class SiteSettingsTest : public QObject
30{
31 Q_OBJECT
32
33private Q_SLOTS:
34 void initTestCase();
35 void cleanupTestCase();
36
37 void webAttributeTest();
38
39private:
40 bool checkWebAttributes(WebPage *page, QHash<QWebEngineSettings::WebAttribute, bool> webAttributes);
41
42 void checkInternalPage(WebTab *tab, QUrl url);
43 void checkExternalPage(WebTab *tab, QUrl url);
44};
45
46#endif // SITESETTINGSTEST_H
47
Definition: webtab.h:40