// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally // Copyright (C) 2021 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.plaintime.prototype.until description: Verify that undefined options are handled correctly. features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(12, 34, 56, 987, 654, 321); const later = new Temporal.PlainTime(18, 34, 56, 987, 654, 322); const explicit = earlier.until(later, undefined); assert.sameValue(explicit.hours, 6, "default largest unit is hours"); assert.sameValue(explicit.nanoseconds, 1, "default smallest unit is nanoseconds and no rounding"); const implicit = earlier.until(later); assert.sameValue(implicit.hours, 6, "default largest unit is hours"); assert.sameValue(implicit.nanoseconds, 1, "default smallest unit is nanoseconds and no rounding"); reportCompare(0, 0);