Closed Bug 1551275 Opened 5 years ago Closed 5 years ago

Refactor weak map jsapi tests

Categories

(Core :: JavaScript: GC, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox68 --- fixed
firefox69 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

In preparation for investigating the weak map marking assertions in bug 1514421 I thought I'd refactor the weak map tests a little. This should make it easier to spot if there are any cases we miss.

This removes a bunch of repeated code and hopefully makes it easier to see what we're testing. When marking two things the same color this now checks both orders (e.g. key before map, map before key). I also enabled the GC weak map marking verification to check that doesn't fail any of these cases.

The tests for JS WeakMap and internal weakmaps are slightly different because I wanted to cover all existing test cases without making things too complicated. This means we don't test marking the key and delegate different colors for the former.

Blocks: 1551907
Attachment #9064515 - Attachment description: Bug 1551275 - Refactor jsapi weak map tests r=sfink? → Bug 1551275 - Refactor jsapi weak map tests r=sfink
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69

Comment on attachment 9064515 [details]
Bug 1551275 - Refactor jsapi weak map tests r=sfink

Beta/Release Uplift Approval Request

  • User impact if declined: Required for uplift of bug 1551907.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Test code changes only.
  • String changes made/needed:
Attachment #9064515 - Flags: approval-mozilla-beta?

Comment on attachment 9064515 [details]
Bug 1551275 - Refactor jsapi weak map tests r=sfink

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Required for uplift of bug 1551907.
  • User impact if declined: None.
  • Fix Landed on Version: 69
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Test code changes only.
  • String or UUID changes made by this patch:
Attachment #9064515 - Flags: approval-mozilla-esr60?

Comment on attachment 9064515 [details]
Bug 1551275 - Refactor jsapi weak map tests r=sfink

approved for 68.0b5

Attachment #9064515 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9064515 [details]
Bug 1551275 - Refactor jsapi weak map tests r=sfink

test-only prereq patch for bug 1551907. Approved for 60.8esr.

Attachment #9064515 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+

There are conflicts for the test file. Please provide a patch for ESR60.

Flags: needinfo?(jcoppeard)

Comment on attachment 9064515 [details]
Bug 1551275 - Refactor jsapi weak map tests r=sfink

Not needed on ESR60 after all.

Flags: needinfo?(jcoppeard)
Attachment #9064515 - Flags: approval-mozilla-esr60+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: