mirror of
https://github.com/tc39/test262.git
synced 2025-09-01 07:18:22 +02:00
Many methods did not test what happened when an input or return value was a blank (all fields 0) duration. This adds coverage for those code paths.
14 lines
448 B
JavaScript
14 lines
448 B
JavaScript
// Copyright (C) 2025 Igalia, S.L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-temporal.duration.from
|
|
description: Behaviour with blank duration
|
|
features: [Temporal]
|
|
includes: [temporalHelpers.js]
|
|
---*/
|
|
|
|
const blank = new Temporal.Duration();
|
|
const result = Temporal.Duration.from(blank);
|
|
TemporalHelpers.assertDuration(result, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "result is also blank");
|