<commit_before>// This test checks whether the top three search engines are in the right order
// in the upper right search box. This has been an issue as search engine names
// got translated, too, leading to the browser not recognizing them anymore.
// This in turn led to wrong default search engines (see bug 11236 for details).
// We are not testing whether some prefs are set properly as this can be the
// case while the search engines are still not properly ordered. Rather, we
// check the entries in the search box directly.

"use strict";

var {expect} = require("../mozilla-mozmill-tests/lib/assertions");
var common = require("../lib/common");

var setupModule = function(aModule) {
  aModule.controller = mozmill.getBrowserController();
}

var testSearchEngines = function () {
  let searchbar = controller.window.document.getElementById("searchbar");
  // Do we have Startpage as default search engine?
  let searchbarTextbox = controller.window.document.
    getAnonymousElementByAttribute(searchbar, "anonid", "searchbar-textbox");
  expect.match(searchbarTextbox.label, /Search/,
          "Search is not the default search engine!");

  // XXX: Test whether the second and third engine are the ones we want as well.
}<commit_msg>searchengines: Search is now called Disconnect #16522<commit_after>// This test checks whether the top three search engines are in the right order
// in the upper right search box. This has been an issue as search engine names
// got translated, too, leading to the browser not recognizing them anymore.
// This in turn led to wrong default search engines (see bug 11236 for details).
// We are not testing whether some prefs are set properly as this can be the
// case while the search engines are still not properly ordered. Rather, we
// check the entries in the search box directly.

"use strict";

var {expect} = require("../mozilla-mozmill-tests/lib/assertions");
var common = require("../lib/common");

var setupModule = function(aModule) {
  aModule.controller = mozmill.getBrowserController();
}

var testSearchEngines = function () {
  let searchbar = controller.window.document.getElementById("searchbar");
  // Do we have Startpage as default search engine?
  let searchbarTextbox = controller.window.document.
    getAnonymousElementByAttribute(searchbar, "anonid", "searchbar-textbox");
  expect.match(searchbarTextbox.label, /Disconnect/,
          "Disconnect is not the default search engine!");

  // XXX: Test whether the second and third engine are the ones we want as well.
}
{'fraction_non_alphanumeric': 0.08962264150943396, 'fraction_numerical': 0.00589622641509434, 'mean_word_length': 4.120724346076459, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1997932', 'n_tokens_mistral': 666, 'n_tokens_neox': 644, 'n_words': 300}