aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-09-25 23:14:00 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-09-25 23:14:00 +0200
commitb1eb91d2068b2ea4b983977412821d4fa9640e4e (patch)
tree3eb3e0da57fc5b290d435353331ce8b188756b4e /tests
parentfcafe9d584797044fc24be1b3fb67da284e0cf17 (diff)
downloadbugzilla-triage-b1eb91d2068b2ea4b983977412821d4fa9640e4e.tar.gz
Massive reformatting to make Eclipse happy
Diffstat (limited to 'tests')
-rw-r--r--tests/test-clipboard.js6
-rw-r--r--tests/test-util.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-clipboard.js b/tests/test-clipboard.js
index 917376d..e1d5828 100644
--- a/tests/test-clipboard.js
+++ b/tests/test-clipboard.js
@@ -8,7 +8,7 @@
var clip = require("clipboard");
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"
+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";
// TODO: VERY insufficient test, needs to be extended
exports.ensureClipboardASCII = function ensureClipboard(test) {
@@ -20,7 +20,7 @@ exports.ensureClipboardASCII = function ensureClipboard(test) {
throw "Cannot read a string from the clipboard";
}
} else {
- throw "Cannot copy string to the clipboard;"
+ throw "Cannot copy string to the clipboard";
}
test.assertEqual(text, testString,
"checking set and get clipboard methods (ASCII)");
@@ -35,7 +35,7 @@ exports.ensureClipboardUnicode = function ensureClipboard(test) {
throw "Cannot read a string from the clipboard";
}
} else {
- throw "Cannot copy string to the clipboard;"
+ throw "Cannot copy string to the clipboard";
}
test.assertEqual(text, pushkinTestString,
"checking set and get clipboard methods (Unicode)");
diff --git a/tests/test-util.js b/tests/test-util.js
index ee44a0d..9acb54c 100644
--- a/tests/test-util.js
+++ b/tests/test-util.js
@@ -201,7 +201,7 @@ exports.ensureGetParamsFromURL = function (test) {
test.assertEqual(JSON.stringify(util.getParamsFromURL("https://bugzilla.redhat.com/")),
JSON.stringify({}),
"URL without any parameters");
- test.assertRaises(function () {util.getParamsFromURL("")},
+ test.assertRaises(function () {util.getParamsFromURL("");},
"Missing URL value!", "No URL");
};