Files
tubestation/toolkit/modules/tests/xpcshell/test_jsesc.js
Kris Maglione 0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00

10 lines
372 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
ChromeUtils.import("resource://gre/modules/third_party/jsesc/jsesc.js");
function run_test() {
Assert.equal(jsesc("teééést", {lowercaseHex: true}), "te\\xe9\\xe9\\xe9st");
Assert.equal(jsesc("teééést", {lowercaseHex: false}), "te\\xE9\\xE9\\xE9st");
}