From fe3a824ad4532a965ead58df6260a4be3ee49b31 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Tue, 26 Sep 2023 15:21:34 +0200 Subject: [PATCH] Tests/LibWeb: Add basic tests for setTimeout and setInterval It is useful to have at least very basic tests for those APIs :) --- Tests/LibWeb/Text/expected/setInterval.txt | 3 +++ Tests/LibWeb/Text/expected/setTimeout.txt | 1 + Tests/LibWeb/Text/input/setInterval.html | 13 +++++++++++++ Tests/LibWeb/Text/input/setTimeout.html | 9 +++++++++ 4 files changed, 26 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/setInterval.txt create mode 100644 Tests/LibWeb/Text/expected/setTimeout.txt create mode 100644 Tests/LibWeb/Text/input/setInterval.html create mode 100644 Tests/LibWeb/Text/input/setTimeout.html diff --git a/Tests/LibWeb/Text/expected/setInterval.txt b/Tests/LibWeb/Text/expected/setInterval.txt new file mode 100644 index 00000000000..d86a8690b3f --- /dev/null +++ b/Tests/LibWeb/Text/expected/setInterval.txt @@ -0,0 +1,3 @@ +setInterval completed count=0 +setInterval completed count=1 +setInterval completed count=2 diff --git a/Tests/LibWeb/Text/expected/setTimeout.txt b/Tests/LibWeb/Text/expected/setTimeout.txt new file mode 100644 index 00000000000..3acee8f97fe --- /dev/null +++ b/Tests/LibWeb/Text/expected/setTimeout.txt @@ -0,0 +1 @@ +setTimeout completed diff --git a/Tests/LibWeb/Text/input/setInterval.html b/Tests/LibWeb/Text/input/setInterval.html new file mode 100644 index 00000000000..d7e2c9121bd --- /dev/null +++ b/Tests/LibWeb/Text/input/setInterval.html @@ -0,0 +1,13 @@ + + diff --git a/Tests/LibWeb/Text/input/setTimeout.html b/Tests/LibWeb/Text/input/setTimeout.html new file mode 100644 index 00000000000..0b6a7b83789 --- /dev/null +++ b/Tests/LibWeb/Text/input/setTimeout.html @@ -0,0 +1,9 @@ + +