Skip to content

Commit

Permalink
Disable the "should compress and save text" unit test in Chrome too
Browse files Browse the repository at this point in the history
Starting with Chrome 120.0.6099.109 (shipped with Puppeteer 21.8.0+) the
unit test fails in Chrome as well. The issue is tracked in #17399, but
for now we'll only run the unit test in Firefox so we can continue to
update Puppeteer while also still having a browser in which it runs,
until we figure out why the behavior of `CompressionStream` changed.
  • Loading branch information
timvandermeij committed Jan 27, 2024
1 parent f103f27 commit 468438f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/unit/annotation_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
AnnotationFieldFlag,
AnnotationFlag,
AnnotationType,
isNodeJS,
OPS,
RenderingIntentFlag,
stringToBytes,
Expand Down Expand Up @@ -2208,9 +2207,9 @@ describe("annotation", function () {
});

it("should compress and save text", async function () {
if (isNodeJS) {
if (!navigator.userAgent.includes("Firefox")) {
pending(
"CompressionStream behaves differently in Node.js, compared to Firefox and Chrome."
"CompressionStream behaves differently in Chrome and Node.js, compared to Firefox (issue 17399)."
);
}
const textWidgetRef = Ref.get(123, 0);
Expand Down

0 comments on commit 468438f

Please sign in to comment.