зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1408044 - stop using about.dtd as an example in firefox-ui/puppeteer/marionette docs/tests, r=whimboo
MozReview-Commit-ID: 4zog9pSgCs9 --HG-- extra : rebase_source : 546415e95c83591d2077a9d6995e69d091a64f73
This commit is contained in:
Родитель
214be74c6c
Коммит
c1e68c5edc
|
@ -17,7 +17,7 @@ class TestL10n(PuppeteerMixin, MarionetteTestCase):
|
|||
self.l10n = L10n(self.marionette)
|
||||
|
||||
def test_dtd_entity_chrome(self):
|
||||
dtds = ['chrome://global/locale/about.dtd',
|
||||
dtds = ['chrome://branding/locale/brand.dtd',
|
||||
'chrome://browser/locale/baseMenuOverlay.dtd']
|
||||
|
||||
value = self.l10n.localize_entity(dtds, 'helpSafeMode.label')
|
||||
|
@ -28,7 +28,7 @@ class TestL10n(PuppeteerMixin, MarionetteTestCase):
|
|||
self.l10n.localize_entity, dtds, 'notExistent')
|
||||
|
||||
def test_dtd_entity_content(self):
|
||||
dtds = ['chrome://global/locale/about.dtd',
|
||||
dtds = ['chrome://branding/locale/brand.dtd',
|
||||
'chrome://global/locale/aboutSupport.dtd']
|
||||
|
||||
value = self.l10n.localize_entity(dtds, 'aboutSupport.pageTitle')
|
||||
|
|
|
@ -17,7 +17,7 @@ class L10n(object):
|
|||
from marionette_driver.localization import L10n
|
||||
l10n = L10n(marionette)
|
||||
|
||||
l10n.localize_entity(["chrome://global/locale/about.dtd"], "about.version")
|
||||
l10n.localize_entity(["chrome://branding/locale/brand.dtd"], "brandShortName")
|
||||
l10n.localize_property(["chrome://global/locale/findbar.properties"], "FastFind"))
|
||||
|
||||
.. _localization: https://mzl.la/2eUMjyF
|
||||
|
|
|
@ -3496,7 +3496,7 @@ GeckoDriver.prototype.responseCompleted = function() {
|
|||
* Retrieve the localized string for the specified entity id.
|
||||
*
|
||||
* Example:
|
||||
* localizeEntity(["chrome://global/locale/about.dtd"], "about.version")
|
||||
* localizeEntity(["chrome://branding/locale/brand.dtd"], "brandShortName")
|
||||
*
|
||||
* @param {Array.<string>} urls
|
||||
* Array of .dtd URLs.
|
||||
|
|
|
@ -35,7 +35,7 @@ this.l10n = {};
|
|||
* Retrieve the localized string for the specified entity id.
|
||||
*
|
||||
* Example:
|
||||
* localizeEntity(["chrome://global/locale/about.dtd"], "about.version")
|
||||
* localizeEntity(["chrome://branding/locale/brand.dtd"], "brandShortName")
|
||||
*
|
||||
* @param {Array.<string>} urls
|
||||
* Array of .dtd URLs.
|
||||
|
|
Загрузка…
Ссылка в новой задаче