Closed Bug 1715847 Opened 3 years ago Closed 3 years ago

TelemetryTestUtils.assertScalar assumes Number (so behaves odd for boolean, strings)

Categories

(Toolkit :: Telemetry, task)

task

Tracking

()

RESOLVED DUPLICATE of bug 1633883

People

(Reporter: Mardak, Assigned: Mardak)

References

Details

Attachments

(1 obsolete file)

(In reply to Ed Lee :Mardak from comment #0)

And a string "hello" that seems to be incorrectly passing(??):
https://searchfox.org/mozilla-central/rev/2c991232499e826e46f9d976eb653817340ba389/toolkit/components/extensions/test/xpcshell/test_ext_telemetry.js#592-596

Looking at other uses of assertScalar in test_ext_telemetry, maybe it should be passed in "dynamic" instead of "parent"
https://searchfox.org/mozilla-central/rev/2c991232499e826e46f9d976eb653817340ba389/toolkit/components/extensions/test/xpcshell/test_ext_telemetry.js#659-663

Assignee: nobody → edilee

Allow both 0 and undefined to have TelemetryTestUtils.assertScalar check for not reported scalar.

Comment on attachment 9226400 [details]
Bug 1715847 - TelemetryTestUtils.assertScalar assumes Number (so behaves odd for boolean, strings) r?Standard8

Revision D117457 was moved to bug 1633883. Setting attachment 9226400 [details] to obsolete.

Attachment #9226400 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: