mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
10e4b2e140
Yearly tradition of creating extra noise in git.
18 lines
665 B
TypeScript
18 lines
665 B
TypeScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
import { assertEquals } from "./test_util.ts";
|
|
|
|
Deno.test(function progressEventConstruct() {
|
|
const progressEventDefs = new ProgressEvent("progressEventType", {});
|
|
assertEquals(progressEventDefs.lengthComputable, false);
|
|
assertEquals(progressEventDefs.loaded, 0);
|
|
assertEquals(progressEventDefs.total, 0);
|
|
|
|
const progressEvent = new ProgressEvent("progressEventType", {
|
|
lengthComputable: true,
|
|
loaded: 123,
|
|
total: 456,
|
|
});
|
|
assertEquals(progressEvent.lengthComputable, true);
|
|
assertEquals(progressEvent.loaded, 123);
|
|
assertEquals(progressEvent.total, 456);
|
|
});
|