Skip to content

Commit

Permalink
Add progress test for lengthComputable: false
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Nov 13, 2023
1 parent 729c5a9 commit 6d3452d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test-app/tests/unit/system/upload-progress-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -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', {
Expand Down Expand Up @@ -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', {
Expand Down

0 comments on commit 6d3452d

Please sign in to comment.