diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-09-14 22:47:47 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-09-14 22:47:47 +0200 |
commit | a2b9bc18e3a11ddc5b0c5dc1fff6edc57b9285b5 (patch) | |
tree | 437e02783b11244f712b69695f09b891ab70b85e /tests | |
parent | 175cdd6039700ee656d220d35854c6277f4a1203 (diff) | |
download | bugzilla-triage-a2b9bc18e3a11ddc5b0c5dc1fff6edc57b9285b5.tar.gz |
Clarify the situation with getBugNo.
* get rid off getBugId ... it was never used and silly
* improve javadoc of getBugNo and explain why it is in util.js,
although it would more belong to bzpage.js (hint: there are no
unit tests for bzpage.js)
* add a test showing that aliases are not convereted to proper
numerical bug numbers
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-util.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-util.js b/tests/test-util.js index f420bb4..ee44a0d 100644 --- a/tests/test-util.js +++ b/tests/test-util.js @@ -209,4 +209,6 @@ exports.ensureGetParamsFromURL = 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"); + bugNo = util.getBugNo("https://bugzilla.redhat.com/show_bug.cgi?id=serialWacom"); + test.assertEqual(bugNo, "serialWacom", "getting a bug alias; there is no guarantee of getting number!"); }; |