gecko-dev/intl/l10n/test/test_domlocalization.js
Zibi Braniecki b7a3ab7ad6 Bug 1347799 - Add DOMLocalization module for the new Localization API. r=mossop
MozReview-Commit-ID: Kw0U6I0E94F

--HG--
extra : rebase_source : 7f3ea6507bade3cd9d4afe45960340273cdb6bac
2017-08-25 11:16:30 -07:00

16 lines
753 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
const { DOMLocalization } =
Components.utils.import("resource://gre/modules/DOMLocalization.jsm", {});
add_task(function test_methods_presence() {
equal(typeof DOMLocalization.prototype.getAttributes, "function");
equal(typeof DOMLocalization.prototype.setAttributes, "function");
equal(typeof DOMLocalization.prototype.translateElement, "function");
equal(typeof DOMLocalization.prototype.translateFragment, "function");
equal(typeof DOMLocalization.prototype.connectRoot, "function");
equal(typeof DOMLocalization.prototype.disconnectRoot, "function");
equal(typeof DOMLocalization.prototype.translateRoots, "function");
});