summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-12 13:56:43 +0430
committerLinus Groh <mail@linusgroh.de>2021-05-12 11:00:45 +0100
commita91a49337c5992d64b30f493eea1eb492792b667 (patch)
treeb665e2c0b31a9935ca8a8f8b5b71bbadf476e32f /Tests
parent422ef7904e9eb6be1182421a7529ed0d5e00991f (diff)
downloadserenity-a91a49337c5992d64b30f493eea1eb492792b667.zip
LibCore+Everywhere: Move OpenMode out of IODevice
...and make it an enum class so people don't omit "OpenMode".
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibJS/test-js.cpp2
-rw-r--r--Tests/LibWeb/test-web.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibJS/test-js.cpp b/Tests/LibJS/test-js.cpp
index 94a265520a..5fffce5831 100644
--- a/Tests/LibJS/test-js.cpp
+++ b/Tests/LibJS/test-js.cpp
@@ -217,7 +217,7 @@ void TestRunner::run()
static Result<NonnullRefPtr<JS::Program>, ParserError> parse_file(const String& file_path)
{
auto file = Core::File::construct(file_path);
- auto result = file->open(Core::IODevice::ReadOnly);
+ auto result = file->open(Core::OpenMode::ReadOnly);
if (!result) {
warnln("Failed to open the following file: \"{}\"", file_path);
cleanup_and_exit();
diff --git a/Tests/LibWeb/test-web.cpp b/Tests/LibWeb/test-web.cpp
index 1b963835de..b6b193fb54 100644
--- a/Tests/LibWeb/test-web.cpp
+++ b/Tests/LibWeb/test-web.cpp
@@ -222,7 +222,7 @@ void TestRunner::run()
static Result<NonnullRefPtr<JS::Program>, ParserError> parse_file(const String& file_path)
{
auto file = Core::File::construct(file_path);
- auto result = file->open(Core::IODevice::ReadOnly);
+ auto result = file->open(Core::OpenMode::ReadOnly);
if (!result) {
printf("Failed to open the following file: \"%s\"\n", file_path.characters());
cleanup_and_exit();