From 6d3452de218469e9362a564048b5959f25ef1a1b Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Mon, 13 Nov 2023 08:18:24 +0100 Subject: [PATCH] Add progress test for `lengthComputable: false` --- .../tests/unit/system/upload-progress-test.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test-app/tests/unit/system/upload-progress-test.ts b/test-app/tests/unit/system/upload-progress-test.ts index d92a9472..9ed39014 100644 --- a/test-app/tests/unit/system/upload-progress-test.ts +++ b/test-app/tests/unit/system/upload-progress-test.ts @@ -70,6 +70,14 @@ module('Unit | upload progress', function (hooks) { ); const steps = [ + { + assertProgressBefore: 0, + event: new ProgressEvent('loadstart', { + lengthComputable: false, + loaded: 0, + total: 0, + }), + }, { assertProgressBefore: 0, event: new ProgressEvent('loadstart', { @@ -175,6 +183,14 @@ module('Unit | upload progress', function (hooks) { ); const steps = [ + { + assertProgressBefore: 0, + event: new ProgressEvent('loadstart', { + lengthComputable: false, + loaded: 0, + total: 0, + }), + }, { assertProgressBefore: 0, event: new ProgressEvent('loadstart', { @@ -225,6 +241,14 @@ module('Unit | upload progress', function (hooks) { ); const steps = [ + { + assertProgressBefore: 0, + event: new ProgressEvent('loadstart', { + lengthComputable: false, + loaded: 0, + total: 0, + }), + }, { assertProgressBefore: 0, event: new ProgressEvent('loadstart', {