diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-06-30 01:13:19 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-06-30 01:13:19 +0200 |
commit | 10ba5aaadd5c4f4bc5a769c2778ef26f952bb5a7 (patch) | |
tree | 09761465da097e065c398d2805332d8b7447dcae /tests | |
parent | 984c66b9db41ccb8d338df993cf16cde2ff68068 (diff) | |
download | bugzilla-triage-10ba5aaadd5c4f4bc5a769c2778ef26f952bb5a7.tar.gz |
Use 'request' module instead of home brewed load{Text,JSON} and httpPOST
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-util.js | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/tests/test-util.js b/tests/test-util.js index 6292e84..c2214d6 100644 --- a/tests/test-util.js +++ b/tests/test-util.js @@ -169,36 +169,4 @@ exports.ensureCSVRemoveEmpty = function (test) { exports.ensureGetBugNo = function (test) { var bugNo = util.getBugNo("https://bugzilla.redhat.com/show_bug.cgi?id=597141"); test.assertEqual(bugNo, 597141, "getting bug number"); -}; - -//// testing util.loadText -exports.ensureLoadText = function (test) { - var url = "http://www.ceplovi.cz/matej/progs/data/doi.txt", text = ""; - test.waitUntilDone(); - util.loadText(url, function (txt) { - test.assertEqual(txt, testString); - test.done(); - }); -}; - -// exports.ensureLoadTextUnicode = function (test) { -// var url = "http://matej.ceplovi.cz/progs/data/pushkin.txt", text = ""; -// test.waitUntilDone(); -// util.loadText(url, function (txt) { -// console.log(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", - date = {}; - test.waitUntilDone(); - util.loadJSON(url, function (data) { - test.assertEqual(JSON.stringify(data), - JSON.stringify([1, 2, 3])); - test.done(); - }); -}; +};
\ No newline at end of file |