1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
5 * When profiles.ini is missing there isn't any point in restoring from any
6 * installs.ini, the profiles it refers to are gone anyway.
10 let hash = xreDirProvider.getInstallHash();
24 writeInstallsIni({ installs });
26 let { profile, didCreate } = selectStartupProfile();
27 checkStartupReason("firstrun-created-default");
29 Assert.ok(didCreate, "Should have created a new profile.");
33 "Should have created the right profile"
36 let profilesData = readProfilesIni();
38 Object.keys(profilesData.installs).length,
40 "Should be only one known install"
42 Assert.ok(hash in profilesData.installs, "Should be the expected install.");
44 profilesData.installs[hash].default,
46 "Didn't import the previous data."
49 profilesData.profiles.length,
51 "Should be two profiles (old-style default and dedicated default)."
54 let { databaseVersion, profileCount } = getTelemetryScalars();
58 "Database file was not present at startup."
63 "Should be two profiles (old-style default and dedicated default)."
66 checkProfileService(profilesData);