From 221f18f72ec3b0e9e215f9d01583ca0c6a93ad66 Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Fri, 14 Jul 2023 07:47:05 +0200 Subject: [PATCH] Tests/LibWeb: Add TransformStream flush callback test This test proves the ability of TransformStream to execute caller supplied code in the flush callback, and have access to TransformStreamDefaultController. --- .../TransformStream-flush-callback.txt | 5 ++++ .../TransformStream-flush-callback.html | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/Streams/TransformStream-flush-callback.txt create mode 100644 Tests/LibWeb/Text/input/Streams/TransformStream-flush-callback.html diff --git a/Tests/LibWeb/Text/expected/Streams/TransformStream-flush-callback.txt b/Tests/LibWeb/Text/expected/Streams/TransformStream-flush-callback.txt new file mode 100644 index 0000000000..3d65b242bc --- /dev/null +++ b/Tests/LibWeb/Text/expected/Streams/TransformStream-flush-callback.txt @@ -0,0 +1,5 @@ +Done: false +HELLO, WORLD! +Done: false +Enqueued in flush, this the last chunk that will be processed. +Done: true diff --git a/Tests/LibWeb/Text/input/Streams/TransformStream-flush-callback.html b/Tests/LibWeb/Text/input/Streams/TransformStream-flush-callback.html new file mode 100644 index 0000000000..fb3310bcdd --- /dev/null +++ b/Tests/LibWeb/Text/input/Streams/TransformStream-flush-callback.html @@ -0,0 +1,25 @@ + +