# HG changeset patch # User Jonathan Kew # Date 1517430531 0 # Node ID 0b7aaf6d8b4ae04286d89bf39b330239778311c8 # Parent 418318e85d6b2889399aa22066534b23d1645630 Bug 1434169 - Update expectations in test_localeService_negotiateLanguages.js to NOT expect case/underscore normalization. r=gandalf diff --git a/intl/locale/tests/unit/test_localeService_negotiateLanguages.js b/intl/locale/tests/unit/test_localeService_negotiateLanguages.js --- a/intl/locale/tests/unit/test_localeService_negotiateLanguages.js +++ b/intl/locale/tests/unit/test_localeService_negotiateLanguages.js @@ -64,24 +64,24 @@ const data = { [["fr"], ["de", "it"], []], [["fr"], ["de", "it"], "en-US", ["en-US"]], [["fr"], ["de", "en-US"], "en-US", ["en-US"]], [["fr", "de-DE"], ["de-DE", "fr-CA"], "en-US", ["fr-CA", "de-DE", "en-US"]], ], "should handle all matches on the 1st higher than any on the 2nd": [ [["fr-CA-macos", "de-DE"], ["de-DE", "fr-FR-windows"], ["fr-FR-windows", "de-DE"]], ], - "should handle cases and underscores": [ + "should handle cases and underscores, returning the form given in the 'available' list": [ [["fr_FR"], ["fr-FR"], ["fr-FR"]], - [["fr_fr"], ["fr-fr"], ["fr-FR"]], - [["fr_Fr"], ["fr-fR"], ["fr-FR"]], + [["fr_fr"], ["fr-FR"], ["fr-FR"]], + [["fr_Fr"], ["fr-fR"], ["fr-fR"]], [["fr_lAtN_fr"], ["fr-Latn-FR"], ["fr-Latn-FR"]], - [["fr_FR"], ["fr_FR"], ["fr-FR"]], - [["fr-FR"], ["fr_FR"], ["fr-FR"]], - [["fr_Cyrl_FR_macos"], ["fr_Cyrl_fr-macos"], ["fr-Cyrl-FR-macos"]], + [["fr_FR"], ["fr_FR"], ["fr_FR"]], + [["fr-FR"], ["fr_FR"], ["fr_FR"]], + [["fr_Cyrl_FR_macos"], ["fr_Cyrl_fr-macos"], ["fr_Cyrl_fr-macos"]], ], "should handle mozilla specific 3-letter variants": [ [["ja-JP-mac", "de-DE"], ["ja-JP-mac", "de-DE"], ["ja-JP-mac", "de-DE"]], ], "should not crash on invalid input": [ [null, ["fr-FR"], []], [[null], [], []], [[undefined], [], []],