<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

registerAutoTests('chrome.i18n', function(runningInBackground) {
  'use strict';
  var testNode = null;
  var langEnUs = navigator.language.toLowerCase() == 'en-us';

  afterEach(function() {
    if (testNode) {
      testNode.parentNode.removeChild(testNode);
      testNode = null;
    }
  });

  it('language should be set to en-US', function() {
    expect(navigator.language.toLowerCase()).toBe('en-us');<commit_msg>Fix i18n language setting test failing for canadian phones<commit_after>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

registerAutoTests('chrome.i18n', function(runningInBackground) {
  'use strict';
  var testNode = null;
  var langEnUs = navigator.language.toLowerCase() == 'en-us';

  afterEach(function() {
    if (testNode) {
      testNode.parentNode.removeChild(testNode);
      testNode = null;
    }
  });

  it('language should be set to en-*', function() {
    expect(navigator.language.toLowerCase()).toMatch(/^en-.*$/);
{'fraction_non_alphanumeric': 0.12767644726407612, 'fraction_numerical': 0.011102299762093577, 'mean_word_length': 3.816793893129771, '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': '3516405', 'n_tokens_mistral': 388, 'n_tokens_neox': 377, 'n_words': 115}