diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/testbed/misc.cpp | 3 | ||||
-rw-r--r-- | engines/testbed/webserver.cpp | 13 |
2 files changed, 7 insertions, 9 deletions
diff --git a/engines/testbed/misc.cpp b/engines/testbed/misc.cpp index a463d9e4d0..bda0a361a7 100644 --- a/engines/testbed/misc.cpp +++ b/engines/testbed/misc.cpp @@ -22,7 +22,6 @@ #include "testbed/misc.h" #include "common/timer.h" -#include "backends/networking/browser/openurl.h" namespace Testbed { @@ -170,7 +169,7 @@ TestExitStatus MiscTests::testOpenUrl() { return kTestSkipped; } - if (!Networking::Browser::openUrl("http://scummvm.org/")) { + if (!g_system->openUrl("http://scummvm.org/")) { Testsuite::logPrintf("Info! openUrl() says it couldn't open the url (probably not supported on this platform)\n"); return kTestFailed; } diff --git a/engines/testbed/webserver.cpp b/engines/testbed/webserver.cpp index b4c69b278d..d46cea5585 100644 --- a/engines/testbed/webserver.cpp +++ b/engines/testbed/webserver.cpp @@ -23,7 +23,6 @@ #include "testbed/webserver.h" #include "backends/networking/sdl_net/localwebserver.h" #include "common/config-manager.h" -#include "backends/networking/browser/openurl.h" namespace Testbed { @@ -92,7 +91,7 @@ TestExitStatus WebserverTests::testIndexPage() { return kTestSkipped; } - Networking::Browser::openUrl(LocalServer.getAddress()); + g_system->openUrl(LocalServer.getAddress()); if (Testsuite::handleInteractiveInput( Common::String::format("The %s page opens well?", LocalServer.getAddress().c_str()), "Yes", "No", kOptionRight)) { @@ -118,7 +117,7 @@ TestExitStatus WebserverTests::testFilesPageInvalidParameterValue() { return kTestSkipped; } - Networking::Browser::openUrl(LocalServer.getAddress()+"files?path=error"); + g_system->openUrl(LocalServer.getAddress()+"files?path=error"); if (Testsuite::handleInteractiveInput( Common::String::format("The %sfiles?path=error page displays error message?", LocalServer.getAddress().c_str()), "Yes", "No", kOptionRight)) { @@ -144,7 +143,7 @@ TestExitStatus WebserverTests::testFilesPageCreateDirectory() { return kTestSkipped; } - Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/"); + g_system->openUrl(LocalServer.getAddress() + "files?path=/root/"); if (Testsuite::handleInteractiveInput( Common::String::format("You could go to %sfiles page, navigate to some directory with write access and create a directory there?", LocalServer.getAddress().c_str()), "Yes", "No", kOptionRight)) { @@ -170,7 +169,7 @@ TestExitStatus WebserverTests::testFilesPageUploadFile() { return kTestSkipped; } - Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/"); + g_system->openUrl(LocalServer.getAddress() + "files?path=/root/"); if (Testsuite::handleInteractiveInput( Common::String::format("You're able to upload a file in some directory with write access through %sfiles page?", LocalServer.getAddress().c_str()), "Yes", "No", kOptionRight)) { @@ -196,7 +195,7 @@ TestExitStatus WebserverTests::testFilesPageUploadDirectory() { return kTestSkipped; } - Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/"); + g_system->openUrl(LocalServer.getAddress() + "files?path=/root/"); if (Testsuite::handleInteractiveInput( Common::String::format("You're able to upload a directory into some directory with write access through %sfiles page using Chrome?", LocalServer.getAddress().c_str()), "Yes", "No", kOptionRight)) { @@ -222,7 +221,7 @@ TestExitStatus WebserverTests::testFilesPageDownloadFile() { return kTestSkipped; } - Networking::Browser::openUrl(LocalServer.getAddress() + "files?path=/root/"); + g_system->openUrl(LocalServer.getAddress() + "files?path=/root/"); if (Testsuite::handleInteractiveInput( Common::String::format("You're able to download a file through %sfiles page?", LocalServer.getAddress().c_str()), "Yes", "No", kOptionRight)) { |