summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Temporal/ZonedDateTime/prototype/round/order-of-operations.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Temporal/ZonedDateTime/prototype/round/order-of-operations.js')
-rw-r--r--js/src/tests/test262/built-ins/Temporal/ZonedDateTime/prototype/round/order-of-operations.js42
1 files changed, 1 insertions, 41 deletions
diff --git a/js/src/tests/test262/built-ins/Temporal/ZonedDateTime/prototype/round/order-of-operations.js b/js/src/tests/test262/built-ins/Temporal/ZonedDateTime/prototype/round/order-of-operations.js
index 48ca638b39..65fac9036c 100644
--- a/js/src/tests/test262/built-ins/Temporal/ZonedDateTime/prototype/round/order-of-operations.js
+++ b/js/src/tests/test262/built-ins/Temporal/ZonedDateTime/prototype/round/order-of-operations.js
@@ -24,10 +24,6 @@ const expected = [
"get this.timeZone.getPossibleInstantsFor",
// GetPlainDateTimeFor on receiver's instant
"call this.timeZone.getOffsetNanosecondsFor",
- // GetInstantFor on preceding midnight
- "call this.timeZone.getPossibleInstantsFor",
- // AddDaysToZonedDateTime
- "call this.timeZone.getPossibleInstantsFor",
// InterpretISODateTimeOffset
"call this.timeZone.getPossibleInstantsFor",
"call this.timeZone.getOffsetNanosecondsFor",
@@ -84,36 +80,8 @@ beforeFallBackInstance.round(nextHourOptions);
assert.compareArray(actual, expected, "order of operations with rounding result at repeated wall-clock time");
actual.splice(0); // clear
-const expectedSkippedDateTime = [
- "get options.roundingIncrement",
- "get options.roundingIncrement.valueOf",
- "call options.roundingIncrement.valueOf",
- "get options.roundingMode",
- "get options.roundingMode.toString",
- "call options.roundingMode.toString",
- "get options.smallestUnit",
- "get options.smallestUnit.toString",
- "call options.smallestUnit.toString",
- // lookup
- "get this.timeZone.getOffsetNanosecondsFor",
- "get this.timeZone.getPossibleInstantsFor",
- // GetPlainDateTimeFor on receiver's instant
- "call this.timeZone.getOffsetNanosecondsFor",
- // GetInstantFor on preceding midnight
- "call this.timeZone.getPossibleInstantsFor",
- // DisambiguatePossibleInstants
- "call this.timeZone.getOffsetNanosecondsFor",
- "call this.timeZone.getOffsetNanosecondsFor",
- "call this.timeZone.getPossibleInstantsFor",
- // AddZonedDateTime
- "call this.timeZone.getPossibleInstantsFor",
- // InterpretISODateTimeOffset
- "call this.timeZone.getPossibleInstantsFor",
- "call this.timeZone.getOffsetNanosecondsFor",
-];
-
springForwardInstance.round(options);
-assert.compareArray(actual, expectedSkippedDateTime, "order of operations with preceding midnight at skipped wall-clock time");
+assert.compareArray(actual, expected, "order of operations with preceding midnight at skipped wall-clock time");
actual.splice(0); // clear
const expectedSkippedResult = [
@@ -131,14 +99,6 @@ const expectedSkippedResult = [
"get this.timeZone.getPossibleInstantsFor",
// GetPlainDateTimeFor on receiver's instant
"call this.timeZone.getOffsetNanosecondsFor",
- // GetInstantFor on preceding midnight
- "call this.timeZone.getPossibleInstantsFor",
- // AddDaysToZonedDateTime
- "call this.timeZone.getPossibleInstantsFor",
- // DisambiguatePossibleInstants
- "call this.timeZone.getOffsetNanosecondsFor",
- "call this.timeZone.getOffsetNanosecondsFor",
- "call this.timeZone.getPossibleInstantsFor",
// InterpretISODateTimeOffset
"call this.timeZone.getPossibleInstantsFor",
// DisambiguatePossibleInstants