Closed Bug 1232216 Opened 9 years ago Closed 9 years ago

test_timezone_definition.js only tests every second timezone/alias

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

From the test: > while (aliases.hasMore()) { > foundAlias = true; > resolveAlias(aliases.getNext()); > aliases.getNext(); > } There's two calls to getNext, which not only skips half of the aliases, it breaks if there is an odd number of them. I've removed this second call from the loop in zone_test with https://hg.mozilla.org/comm-central/rev/5f239d0dd5b6 to fix bustage, but doing so in alias_test exposes a failure: > JavaScript Error: "Couldn't find America/Indianapolis"
Attached patch 1232216-1.diffSplinter Review
That turned out to be easier to debug than I expected.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #8697899 - Flags: review?(philipp)
Attachment #8697899 - Flags: review?(philipp) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.7
See Also: → 1212076
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: