mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 05:55:36 +02:00
Use correct keys in non-iso-calendars.js
Using Object.keys() of the expected values in each case decouples these tests.
This commit is contained in:
parent
bce41ea609
commit
d865ffeb2d
@ -854,8 +854,7 @@ var tests = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var calendars = Object.keys(addMonthsCases);
|
for (var id of Object.keys(addMonthsCases)) {
|
||||||
for (var id of calendars) {
|
|
||||||
for (var [unit, {duration, results, startDate}] of Object.entries(tests)) {
|
for (var [unit, {duration, results, startDate}] of Object.entries(tests)) {
|
||||||
var values = results[id];
|
var values = results[id];
|
||||||
duration = Temporal.Duration.from(duration);
|
duration = Temporal.Duration.from(duration);
|
||||||
@ -1269,7 +1268,7 @@ var daysInMonthCases = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
totalNow = 0;
|
totalNow = 0;
|
||||||
for (var id of calendars) {
|
for (var id of Object.keys(daysInMonthCases)) {
|
||||||
var {year, leap, days} = daysInMonthCases[id];
|
var {year, leap, days} = daysInMonthCases[id];
|
||||||
var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({
|
var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({
|
||||||
year,
|
year,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user