blob: f63d6211c082db29d430e5cd6b80ba3f90ee6891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
include(../../httpserver/httpserver.cmake)
include(../../util/util.cmake)
qt_internal_add_test(tst_qwebenginepage
SOURCES
tst_qwebenginepage.cpp
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
Qt::WebEngineCorePrivate
Qt::WebEngineWidgets
Test::HttpServer
Test::Util
)
get_target_property(sharedData Test::HttpServer SHARED_DATA)
set(tst_qwebenginepage_resource_files
"resources/redirect.html"
"resources/bar.txt"
"resources/content.html"
"resources/dynamicFrame.html"
"resources/foo.txt"
"resources/fontaccess.html"
"resources/frame_a.html"
"resources/frame_c.html"
"resources/framedindex.html"
"resources/fullscreen.html"
"resources/iframe.html"
"resources/iframe2.html"
"resources/iframe3.html"
"resources/image.png"
"resources/index.html"
"resources/lifecycle.html"
"resources/pasteimage.html"
"resources/path with spaces.txt"
"resources/reload.html"
"resources/script.html"
"resources/style.css"
"resources/test1.html"
"resources/test2.html"
"resources/testiframe.html"
"resources/testiframe2.html"
"resources/user.css"
)
qt_internal_add_resource(tst_qwebenginepage "tst_qwebenginepage"
PREFIX
"/"
FILES
${tst_qwebenginepage_resource_files}
)
set_source_files_properties("${sharedData}/notification.html"
PROPERTIES QT_RESOURCE_ALIAS "notification.html"
)
set(tst_qwebenginepage1_resource_files
"${sharedData}/notification.html"
)
qt_internal_add_resource(tst_qwebenginepage "tst_qwebenginepage1"
PREFIX
"/shared"
FILES
${tst_qwebenginepage1_resource_files}
)
|