summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/tests/xpcshell/searchconfigs/test_yandex.js
blob: 6e2575b3c3e885225fb8f85b17e16bcfba0f0777 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

const test = new SearchConfigTest({
  identifier: "yandex",
  aliases: ["@\u044F\u043D\u0434\u0435\u043A\u0441", "@yandex"],
  default: {
    included: [
      {
        regions: ["ru", "tr", "by", "kz"],
        locales: ["ru", "tr", "be", "kk", "en-CA", "en-GB", "en-US"],
      },
    ],
  },
  available: {
    included: [
      {
        locales: ["az", "ru", "be", "kk", "tr"],
      },
      {
        regions: ["ru", "tr", "by", "kz"],
        locales: ["en-CA", "en-GB", "en-US"],
      },
    ],
  },
  details: [
    {
      included: [{ locales: ["az"] }],
      domain: "yandex.az",
      telemetryId: "yandex-az",
      codes: {
        searchbar: "clid=2186618",
        keyword: "clid=2186621",
        contextmenu: "clid=2186623",
        homepage: "clid=2186617",
        newtab: "clid=2186620",
      },
    },
    {
      included: [{ locales: { startsWith: ["en"] } }],
      domain: "yandex.com",
      telemetryId: "yandex-en",
      codes: {
        searchbar: "clid=2186618",
        keyword: "clid=2186621",
        contextmenu: "clid=2186623",
        homepage: "clid=2186617",
        newtab: "clid=2186620",
      },
    },
    {
      included: [{ locales: ["ru"] }],
      domain: "yandex.ru",
      telemetryId: "yandex-ru",
      codes: {
        searchbar: "clid=2186618",
        keyword: "clid=2186621",
        contextmenu: "clid=2186623",
        homepage: "clid=2186617",
        newtab: "clid=2186620",
      },
    },
    {
      included: [{ locales: ["be"] }],
      domain: "yandex.by",
      telemetryId: "yandex-by",
      codes: {
        searchbar: "clid=2186618",
        keyword: "clid=2186621",
        contextmenu: "clid=2186623",
        homepage: "clid=2186617",
        newtab: "clid=2186620",
      },
    },
    {
      included: [{ locales: ["kk"] }],
      domain: "yandex.kz",
      telemetryId: "yandex-kk",
      codes: {
        searchbar: "clid=2186618",
        keyword: "clid=2186621",
        contextmenu: "clid=2186623",
        homepage: "clid=2186617",
        newtab: "clid=2186620",
      },
    },
    {
      included: [{ locales: ["tr"] }],
      domain: "yandex.com.tr",
      telemetryId: "yandex-tr",
      codes: {
        searchbar: "clid=2186618",
        keyword: "clid=2186621",
        contextmenu: "clid=2186623",
        homepage: "clid=2186617",
        newtab: "clid=2186620",
      },
    },
  ],
});

add_setup(async function () {
  await test.setup();
});

add_task(async function test_searchConfig_yandex() {
  await test.run();
}).skip();