summaryrefslogtreecommitdiffstats
path: root/browser/extensions/formautofill/test/browser/heuristics/browser_de_fields.js
blob: 0d47cb6935e870b3f9d1d4d7f6e9c37f0753cde8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* global add_heuristic_tests */

"use strict";

add_heuristic_tests(
  [
    {
      fixturePath: "heuristics_de_fields.html",
      expectedResult: [
        {
          fields: [
            { fieldName: "cc-name", reason: "fathom" },
            { fieldName: "cc-type", reason: "regex-heuristic" },
            { fieldName: "cc-number", reason: "fathom" },
            { fieldName: "cc-exp-month", reason: "regex-heuristic" },
            { fieldName: "cc-exp-year", reason: "regex-heuristic" },
          ],
        },
        {
          fields: [
            { fieldName: "cc-name", reason: "fathom" },
            { fieldName: "cc-type", reason: "regex-heuristic" },
            { fieldName: "cc-number", reason: "fathom" },
            { fieldName: "cc-exp-month", reason: "regex-heuristic" },
            { fieldName: "cc-exp-year", reason: "regex-heuristic" },
          ],
        },
      ],
    },
  ],
  "fixtures/"
);