From 8156ec5da8f43ee131f4af27f2a7a9077d205073 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 4 Mar 2022 10:36:21 -0500 Subject: [PATCH] Base: Replace setInterval test page with a more thorough timer test page Ensure we test both setTimeout and setInterval (and their cancellation methods), and test scenarios such as raising exceptions in the callback, passing extra arguments, etc. --- Base/res/html/misc/set-interval.html | 23 --- .../html/misc/set-timeout-and-interval.html | 194 ++++++++++++++++++ Base/res/html/misc/welcome.html | 2 +- 3 files changed, 195 insertions(+), 24 deletions(-) delete mode 100644 Base/res/html/misc/set-interval.html create mode 100644 Base/res/html/misc/set-timeout-and-interval.html diff --git a/Base/res/html/misc/set-interval.html b/Base/res/html/misc/set-interval.html deleted file mode 100644 index 63d26017cd..0000000000 --- a/Base/res/html/misc/set-interval.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - setInterval() test - - - -
- - diff --git a/Base/res/html/misc/set-timeout-and-interval.html b/Base/res/html/misc/set-timeout-and-interval.html new file mode 100644 index 0000000000..be656d7ae4 --- /dev/null +++ b/Base/res/html/misc/set-timeout-and-interval.html @@ -0,0 +1,194 @@ + + + + + + + + + + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 9cfdf61325..79b19629b1 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -152,7 +152,7 @@
  • querySelectorAll()
  • innerHTML()
  • fun demo
  • -
  • setInterval()
  • +
  • setTimeout() and setInterval()
  • window.location property
  • Test for the early return steps 6-8 of the "prepare a script" algorithm
  • Basic test for async functions and their integration with the LibWeb event loop