-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test for bundled libraries like libjpeg,libpng, ICU #1036
base: qtwebkit-5.212
Are you sure you want to change the base?
Test for bundled libraries like libjpeg,libpng, ICU #1036
Conversation
tests/webkitwidgets/CMakeLists.txt
Outdated
@@ -59,7 +60,7 @@ foreach (testName ${QtWK1ApiTests}) | |||
add_executable(tst_${testName} ${tst_${testName}_SOURCES}) | |||
target_include_directories(tst_${testName} PRIVATE ${testName}) | |||
target_link_libraries(tst_${testName} ${QtWK1ApiTests_LIBRARIES}) | |||
set_target_properties(tst_${testName} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${QtWK1ApiTests_RUNTIME_OUTPUT_DIRECTORY} AUTOMOC ON) | |||
set_target_properties(tst_${testName} PROPERTIES RUNTIME_OUTPUT_DIRECTORY_${CMAKE_BUILD_TYPE_UPPER} ${QtWK1ApiTests_RUNTIME_OUTPUT_DIRECTORY} AUTOMOC ON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some CMake generators (e.g. Visual Studio, Ninja Multi-Config) support multiple build types in one build, so this way is not correct. I think we need something like
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
like e.g. in OptionsWin.cmake
{ | ||
QString html("<html>" | ||
"<body>" | ||
"<img src='qrc:///image.jpg'>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK <html>
and <body>
will be added automatically if you just use "<img src='qrc:///image.jpg'>"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the browser itself adds those tags by default not only for qrc. So yeah I will fix this.
|
||
void tst_Libjpeg::decodeAndCompare() | ||
{ | ||
QString html("<html>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QStringLiteral
4251981
to
de2e41b
Compare
Looks good! Now you can proceed with other tests |
de2e41b
to
cf215db
Compare
2057c3f
to
480b9eb
Compare
|
||
void tst_Libjpeg::cleanupTestCase() | ||
{ | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to have empty constructors, init/cleanup
QVariant res = page.mainFrame()->evaluateJavaScript("res"); | ||
QCOMPARE(res.toString(), QStringLiteral("Database Success")); | ||
|
||
page.mainFrame()->evaluateJavaScript("add('1','Name1')"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space afrer ","
480b9eb
to
32359e8
Compare
814be06
to
19e13e2
Compare
|
Runtime_output_directory_<config> takes precedence over Runtime_output_directory So binary of tests for windows are ending up in wrong folder. Tests goes to right dir in case of multi-config gen
ab223f9
to
20c851d
Compare
No description provided.