mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 04:54:44 +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 calendars) {
|
||||
for (var id of Object.keys(addMonthsCases)) {
|
||||
for (var [unit, {duration, results, startDate}] of Object.entries(tests)) {
|
||||
var values = results[id];
|
||||
duration = Temporal.Duration.from(duration);
|
||||
@ -1269,7 +1268,7 @@ var daysInMonthCases = {
|
||||
}
|
||||
};
|
||||
totalNow = 0;
|
||||
for (var id of calendars) {
|
||||
for (var id of Object.keys(daysInMonthCases)) {
|
||||
var {year, leap, days} = daysInMonthCases[id];
|
||||
var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({
|
||||
year,
|
||||
|
Loading…
x
Reference in New Issue
Block a user