Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 2ee8014

Browse files
committed
Bug 1556173: Fix test_profile_reset.js on dev-edition builds. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D34002
1 parent bacdfce commit 2ee8014

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

toolkit/profile/xpcshell/test_profile_reset.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
http://creativecommons.org/publicdomain/zero/1.0/ */
33

44
/*
5-
* Tests that from an empty database with profile terset requested a new profile
5+
* Tests that from an empty database with profile reset requested a new profile
66
* is still created.
77
*/
88

@@ -20,7 +20,11 @@ add_task(async () => {
2020
Assert.ok(profileData.options.startWithLastProfile, "Should be set to start with the last profile.");
2121
Assert.equal(profileData.profiles.length, 2, "Should have the right number of profiles, ours and the old-style default.");
2222

23-
let profile = profileData.profiles[AppConstants.MOZ_DEV_EDITION ? 0 : 1];
23+
let profile = profileData.profiles[0];
24+
Assert.equal(profile.name, "default", "Should have the right name.");
25+
Assert.ok(profile.default, "Should be marked as the old-style default.");
26+
27+
profile = profileData.profiles[1];
2428
Assert.equal(profile.name, DEDICATED_NAME, "Should have the right name.");
2529
Assert.ok(!profile.default, "Should not be marked as the old-style default.");
2630

0 commit comments

Comments
 (0)