aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-03 00:16:46 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-03 00:16:46 +0200
commit4f2e73837a000844c75bfa70d1be5debc0ac4859 (patch)
tree4a746e79442d1d1b8947e03afd431e33bec83b11 /tests
parent17db206e5794f553fe25433d53f4ace4094412c0 (diff)
downloadbugzilla-triage-4f2e73837a000844c75bfa70d1be5debc0ac4859.tar.gz
Adding failing Unicode test.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-util.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-util.js b/tests/test-util.js
index 49450c9..0621ad9 100644
--- a/tests/test-util.js
+++ b/tests/test-util.js
@@ -5,6 +5,7 @@
var util = require("util");
var testString = "When in the Course of human events it becomes necessary for one people to dissolve the political bands which have connected them with another and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation.\n";
+var pushkinTestString = "Byl pozdní večer první máj!\n\nАРИОН.\n\nНас было много на челне;\nИные парус напрягали,\nДругие дружно упирали\nВ глубь мощны веслы. В тишине\nНа руль склонясь, наш кормщик умный\nВ молчаньи правил грузный чолн;\nА я — беспечной веры полн —\nПловцам я пел … Вдруг лоно волн\nИзмял с налету вихорь шумный …\nПогиб и кормщик и пловец! –\nЛишь я, таинственный певец,\nНа берег выброшен грозою,\nЯ гимны прежние пою\nИ ризу влажную мою\nСушу на солнце под скалою.\n"
// testing util.heir
exports.ensureHeir = function (test) {
@@ -159,6 +160,15 @@ exports.ensureLoadText = function (test) {
});
};
+//exports.ensureLoadTextUnicode = function (test) {
+// var url = "http://matej.ceplovi.cz/progs/data/pushkin.txt", text = "";
+// test.waitUntilDone();
+// util.loadText(url, function (txt) {
+// test.assertEqual(txt, pushkinTestString);
+// test.done();
+// });
+//};
+
//// testing util.loadJSON
exports.ensureLoadJSON = function (test) {
var url = "http://www.ceplovi.cz/matej/progs/data/test.json",