Closed Bug 1774183 Opened 3 years ago Closed 3 years ago

Improve test coverage for colorwaycloset.js

Categories

(Firefox :: Theme, task)

task
Points:
1

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: bigiri, Assigned: bigiri)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-2022-mr1-colorways])

Attachments

(1 file)

See Also: → 1773322
Blocks: untestedcode-codecoverage
No longer blocks: 1457215
Whiteboard: [fidefe-2022-mr1-colorways]
Depends on: 1774432
Assignee: nobody → bigiri
Status: NEW → ASSIGNED

Added tests to improve test coverage of colorwaycloset.js

Blocks: 1776256
Points: --- → 1
Attachment #9282635 - Attachment description: Bug 1774183 - Improve test coverage of colorwaycloset.js r=Dao! → Bug 1774183 - Improve test coverage of colorwaycloset.js r=Gijs!
Pushed by bigiri@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0783edbc00a5 Improve test coverage of colorwaycloset.js r=Gijs
Regressions: 1777490

Backed out for causing failures on browser_colorwayCloset.js

[task 2022-06-30T14:00:45.124Z] 14:00:45     INFO - TEST-PASS | browser/components/colorways/tests/browser/browser_colorwayCloset.js | Correct expiry date format should be shown - 
[task 2022-06-30T14:00:45.124Z] 14:00:45     INFO - Buffered messages finished
[task 2022-06-30T14:00:45.125Z] 14:00:45     INFO - TEST-UNEXPECTED-FAIL | browser/components/colorways/tests/browser/browser_colorwayCloset.js | A promise chain failed to handle a rejection: can't access property "figureUrl", BuiltInThemes.builtInThemeMap.get(...) is undefined - stack: _getFigureUrl@chrome://browser/content/colorwaycloset.js:145:42
[task 2022-06-30T14:00:45.126Z] 14:00:45     INFO - _displayColorwayData@chrome://browser/content/colorwaycloset.js:154:39
[task 2022-06-30T14:00:45.126Z] 14:00:45     INFO - refresh@chrome://browser/content/colorwaycloset.js:224:14
[task 2022-06-30T14:00:45.127Z] 14:00:45     INFO - _initColorwayRadios@chrome://browser/content/colorwaycloset.js:97:12
[task 2022-06-30T14:00:45.128Z] 14:00:45     INFO - Rejection date: Thu Jun 30 2022 14:00:44 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-06-30T14:00:45.128Z] 14:00:45     INFO - Stack trace:
[task 2022-06-30T14:00:45.129Z] 14:00:45     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-06-30T14:00:45.129Z] 14:00:45     INFO - chrome://mochikit/content/browser-test.js:handleTask:1017
[task 2022-06-30T14:00:45.130Z] 14:00:45     INFO - resource://gre/modules/SubDialog.jsm:close/<:283
[task 2022-06-30T14:00:45.137Z] 14:00:45     INFO - Leaving test bound colorwaycloset_show_colorway
[task 2022-06-30T14:00:45.139Z] 14:00:45     INFO - Entering test bound colorwaycloset_custom_home_page
[task 2022-06-30T14:00:45.140Z] 14:00:45     INFO - Set custom home page
Flags: needinfo?(bigiri)

I'll take a look.

Flags: needinfo?(bigiri)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: