Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 /*
5 * The list of phases mapped to their corresponding profiles. The object
6 * here must be in strict JSON format, as it will get parsed by the Python
7 * testrunner (no single quotes, extra comma's, etc).
8 */
9 EnableEngines(["passwords"]);
11 var phases = { "phase1": "profile1",
12 "phase2": "profile2",
13 "phase3": "profile1",
14 "phase4": "profile2" };
16 /*
17 * Password lists
18 */
20 var passwords_initial = [
21 { hostname: "http://www.example.com",
22 submitURL: "http://login.example.com",
23 username: "joe",
24 password: "secret",
25 usernameField: "uname",
26 passwordField: "pword",
27 changes: {
28 password: "SeCrEt$$$"
29 }
30 },
31 { hostname: "http://www.example.com",
32 realm: "login",
33 username: "jack",
34 password: "secretlogin"
35 }
36 ];
38 var passwords_after_first_update = [
39 { hostname: "http://www.example.com",
40 submitURL: "http://login.example.com",
41 username: "joe",
42 password: "SeCrEt$$$",
43 usernameField: "uname",
44 passwordField: "pword"
45 },
46 { hostname: "http://www.example.com",
47 realm: "login",
48 username: "jack",
49 password: "secretlogin"
50 }
51 ];
53 /*
54 * Test phases
55 */
57 Phase('phase1', [
58 [Passwords.add, passwords_initial],
59 [Sync]
60 ]);
62 Phase('phase2', [
63 [Passwords.add, passwords_initial],
64 [Sync]
65 ]);
67 Phase('phase3', [
68 [Sync],
69 [Passwords.verify, passwords_initial],
70 [Passwords.modify, passwords_initial],
71 [Passwords.verify, passwords_after_first_update],
72 [Sync]
73 ]);
75 Phase('phase4', [
76 [Sync],
77 [Passwords.verify, passwords_after_first_update],
78 ]);