mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Tests: Add a test for EventLoop::pump(PollForEvents)
This commit is contained in:
parent
e0a75d5084
commit
3c9ddc9b7f
Notes:
github-actions[bot]
2025-10-22 22:33:54 +00:00
Author: https://github.com/Zaggy1024
Commit: 3c9ddc9b7f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6550
2 changed files with 16 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
set(TEST_SOURCES
|
set(TEST_SOURCES
|
||||||
TestLibCoreArgsParser.cpp
|
TestLibCoreArgsParser.cpp
|
||||||
TestLibCoreDeferredInvoke.cpp
|
TestLibCoreDeferredInvoke.cpp
|
||||||
|
TestLibCoreEventLoop.cpp
|
||||||
TestLibCoreMappedFile.cpp
|
TestLibCoreMappedFile.cpp
|
||||||
TestLibCoreMimeType.cpp
|
TestLibCoreMimeType.cpp
|
||||||
TestLibCorePromise.cpp
|
TestLibCorePromise.cpp
|
||||||
|
|
|
||||||
15
Tests/LibCore/TestLibCoreEventLoop.cpp
Normal file
15
Tests/LibCore/TestLibCoreEventLoop.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2025, Gregory Bertilson <gregory@ladybird.org>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <LibCore/EventLoop.h>
|
||||||
|
#include <LibTest/TestCase.h>
|
||||||
|
|
||||||
|
TEST_CASE(test_poll_for_events)
|
||||||
|
{
|
||||||
|
Core::EventLoop event_loop;
|
||||||
|
|
||||||
|
event_loop.pump(Core::EventLoop::WaitMode::PollForEvents);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue