1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
5 * Tests that from a database of profiles the default profile is selected.
9 let hash = xreDirProvider.getInstallHash();
13 startWithLastProfile: true,
32 if (AppConstants.MOZ_DEV_EDITION) {
33 profileData.profiles.push(
40 name: PROFILE_DEFAULT,
45 profileData.profiles.push({
46 name: PROFILE_DEFAULT,
52 writeProfilesIni(profileData);
54 let { profile, didCreate } = selectStartupProfile();
55 checkStartupReason("default");
57 let service = getProfileService();
58 checkProfileService(profileData);
60 Assert.ok(!didCreate, "Should not have created a new profile.");
63 service.defaultProfile,
64 "Should have returned the default profile."
69 "Should have selected the right profile"