Bug 1796551 [wpt PR 36570] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / toolkit / profile / xpcshell / test_select_missing.js
blob97da6d76b3d61eadace0c29dd1272af54ec0e4a9
1 /* Any copyright is dedicated to the Public Domain.
2    http://creativecommons.org/publicdomain/zero/1.0/ */
4 /*
5  * Tests that when choosing an unknown profile the profile manager is shown.
6  */
8 add_task(async () => {
9   let profileData = {
10     options: {
11       startWithLastProfile: true,
12     },
13     profiles: [
14       {
15         name: "Profile1",
16         path: "Path1",
17       },
18       {
19         name: "Profile2",
20         path: "Path2",
21         default: true,
22       },
23       {
24         name: "Profile3",
25         path: "Path3",
26       },
27     ],
28   };
30   writeProfilesIni(profileData);
31   checkProfileService(profileData);
33   testStartsProfileManager(["-P", "foo"]);
34 });