mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 588193 - more tests for util.js [r=mconnor]
This commit is contained in:
parent
7793bfb639
commit
3b6c3b50d4
8
services/sync/tests/unit/test_utils_utf8.js
Normal file
8
services/sync/tests/unit/test_utils_utf8.js
Normal file
@ -0,0 +1,8 @@
|
||||
Cu.import("resource://services-sync/util.js");
|
||||
|
||||
function run_test() {
|
||||
let str = "Umlaute: \u00FC \u00E4\n"; // Umlaute: ü ä
|
||||
let encoded = Utils.encodeUTF8(str);
|
||||
let decoded = Utils.decodeUTF8(encoded);
|
||||
do_check_eq(decoded, str);
|
||||
}
|
Loading…
Reference in New Issue
Block a user