1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
5 * Tests that when the profiles DB is missing the install data we reload it.
9 let hash = xreDirProvider.getInstallHash();
13 startWithLastProfile: true,
33 writeProfilesIni(profileData);
34 writeInstallsIni({ installs });
36 let { profile, didCreate } = selectStartupProfile();
37 checkStartupReason("default");
38 let { databaseVersion, profileCount } = getTelemetryScalars();
42 "Old database file was present at startup."
44 Assert.equal(profileCount, 2, "Should be two profiles.");
46 // Should have added the backup data to the service, check that is true.
47 profileData.installs = installs;
48 checkProfileService(profileData);
50 Assert.ok(!didCreate, "Should not have created a new profile.");
54 "Should have selected the right profile"