Bug 1885565 - Part 2: Fix up parameter ordering and kDoc descriptions in NavigationBa...
[gecko.git] / toolkit / profile / xpcshell / test_legacy_empty.js
blob7348006f8b891e544eaa8faad04e5c094837b0f2
1 /* Any copyright is dedicated to the Public Domain.
2    http://creativecommons.org/publicdomain/zero/1.0/ */
4 /*
5  * Tests that setting MOZ_LEGACY_PROFILES disables dedicated profiles.
6  */
8 add_task(async () => {
9   enableLegacyProfiles();
11   let service = getProfileService();
12   let { profile, didCreate } = selectStartupProfile();
13   checkStartupReason("firstrun-created-default");
15   Assert.ok(didCreate, "Should have created a new profile.");
16   Assert.equal(
17     profile.name,
18     PROFILE_DEFAULT,
19     "Should have used the normal name."
20   );
21   if (AppConstants.MOZ_DEV_EDITION) {
22     Assert.equal(service.profileCount, 2, "Should be two profiles.");
23   } else {
24     Assert.equal(service.profileCount, 1, "Should be only one profile.");
25   }
27   checkProfileService();
28 });