diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-01-20 18:07:19 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-01-20 18:07:19 +0100 |
commit | 6424471ab36679138c1708ddaf97c40e6bf24155 (patch) | |
tree | ae0febb47013314f1316e27bfa386d807b8433a5 /data/rhbzpage.js | |
parent | a8d92b4d8ef27e216b33781e014a35f55bf1be42 (diff) | |
download | bugzilla-triage-6424471ab36679138c1708ddaf97c40e6bf24155.tar.gz |
All unchecked functions marked as such, empty files for docs added.
Diffstat (limited to 'data/rhbzpage.js')
-rw-r--r-- | data/rhbzpage.js | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/data/rhbzpage.js b/data/rhbzpage.js index d4d071a..1d0907a 100644 --- a/data/rhbzpage.js +++ b/data/rhbzpage.js @@ -13,7 +13,7 @@ var titleParsedAttachment = "Part of the thread where crash happened"; * @return String what would be a default assignee if * we haven't set it up. */ -function getDefaultAssignee() { +nonTestedFunction getDefaultAssignee() { return util.filterByRegexp(this.constantData.defaultAssignee, this.getComponent()).toLowerCase(); } @@ -24,7 +24,7 @@ function getDefaultAssignee() { * @return none * sets this.defaultAssignee property according to defaultAssignee list */ -function setDefaultAssignee() { +nonTestedFunction setDefaultAssignee() { this.defaultAssignee = this.getDefaultAssignee(); var defAss = this.defaultAssignee; @@ -38,7 +38,7 @@ function setDefaultAssignee() { /** * Auxiliary function to compute more complicated resolution */ -function closeSomeRelease() { +nonTestedFunction closeSomeRelease() { // for RAWHIDE close as RAWHIDE, // if active selection -> CURRENTRELEASE // and put the release version to @@ -65,7 +65,7 @@ function closeSomeRelease() { /** * Additional commands specific for this subclass, overriding superclass one. */ -function RHcentralCommandDispatch(cmdLabel, cmdParams) { +nonTestedFunction RHcentralCommandDispatch(cmdLabel, cmdParams) { console.log("cmdLabel = " + cmdLabel + ", cmdParams = " + cmdParams); switch (cmdLabel) { // Set up our own commands @@ -100,7 +100,7 @@ function RHcentralCommandDispatch(cmdLabel, cmdParams) { * This has to stay in RHBugzillaPage because upstream doesn't have addAttachment * XML-RPC call yet. */ -function addAttachment(data, callback, param) { +nonTestedFunction addAttachment(data, callback, param) { var msg = new xrpc.XMLRPCMessage("bugzilla.addAttachment"); var that = this; @@ -135,7 +135,7 @@ function addAttachment(data, callback, param) { /** * */ -function pasteBacktraceInComments() { +nonTestedFunction pasteBacktraceInComments() { var that = this; /* @@ -210,7 +210,7 @@ function pasteBacktraceInComments() { * @param id Number of the attachment id * @return none */ -function showAttachment(id) { +nonTestedFunction showAttachment(id) { var that = this; Request({ url: "https://" + that.hostname + "/attachment.cgi?id=" + id, @@ -233,7 +233,7 @@ function showAttachment(id) { * * @param att Attachment object */ -function addShowParsedBTLink(att) { +nonTestedFunction addShowParsedBTLink(att) { var elem = att[4].querySelector("td:last-of-type"); this.createDeadLink("showParsedBacktraceWindow-" + att[1], "showBT", elem, this.showAttachment, att[1], true); @@ -242,7 +242,7 @@ function addShowParsedBTLink(att) { /** * Unfinished ... see above */ -function addNewAttachmentRow(origAtt, +nonTestedFunction addNewAttachmentRow(origAtt, newAttId, newAttSize) { var that = this; var oldAddBTLink = this.doc.getElementById("attachBacktraceActivator"); @@ -291,7 +291,7 @@ function addNewAttachmentRow(origAtt, * @param snippet String with parsed backtrace * @return none */ -function addCheckShowLink(oldAtt, snippet) { +nonTestedFunction addCheckShowLink(oldAtt, snippet) { var that = this; var elem = oldAtt[4].querySelector("td:last-of-type"); this.createDeadLink("attachBacktraceActivator", "add parsed BT", elem, function(x) { @@ -307,7 +307,7 @@ function addCheckShowLink(oldAtt, snippet) { * @param atts Array of attachments subarrays * @return none */ -function markBadAttachments(atts) { +nonTestedFunction markBadAttachments(atts) { var that = this; var badMIMEArray = [ "application/octet-stream", "text/x-log", "undefined" ]; if (!this.password) { @@ -340,7 +340,7 @@ function markBadAttachments(atts) { * * @return Boolean true if it is a RHEL bug */ -function isEnterprise() { +nonTestedFunction isEnterprise() { var prod = this.product; var result = this.constantData.ProfessionalProducts.some(function(elem,idx,arr) { return new RegExp(elem).test(prod); @@ -353,7 +353,7 @@ function isEnterprise() { * * @return Boolean whether the bug has been triaged or not */ -function isTriaged() { +nonTestedFunction isTriaged() { return this.hasKeyword("Triaged"); } @@ -365,7 +365,7 @@ function isTriaged() { * @param its String with the IsueTracker numbers * @return none */ -function setBranding() { +nonTestedFunction setBranding() { var brandColor = {}; var TriagedColor = {}; @@ -436,7 +436,7 @@ function setBranding() { * * @return none */ -function queryUpstream() { +nonTestedFunction queryUpstream() { var text = this.getSelectionOrClipboard(); if (text) { var queryUpstreamBugsURLArray = this.constantData.queryUpstreamBug; @@ -462,7 +462,7 @@ function queryUpstream() { * * @return none */ -function sendBugUpstream() { +nonTestedFunction sendBugUpstream() { var that = this; var urlStr = util.filterByRegexp(JSON.parse(self.data.load("newUpstreamBug.json")), this .getComponent()); @@ -487,7 +487,7 @@ function sendBugUpstream() { * * @return none */ -function addCheckXorgLogLink() { +nonTestedFunction addCheckXorgLogLink() { var that = this; if (this.xorglogAnalysis) { this.XorgLogAttList.forEach(function (row) { @@ -507,7 +507,7 @@ function addCheckXorgLogLink() { * @param driverStr String with the driver name * @return None */ -function fillInWhiteBoard(iLine, driverStr) { +nonTestedFunction fillInWhiteBoard(iLine, driverStr) { var that = this; function groupIDs(manStr, cardStrID) { @@ -587,7 +587,7 @@ function fillInWhiteBoard(iLine, driverStr) { * * @return None */ -function fillInChipMagic() { +nonTestedFunction fillInChipMagic() { var that = this; var XorgLogURL = ""; var XorgLogAttID = ""; @@ -629,7 +629,7 @@ function fillInChipMagic() { this.XorgLogAttListIndex++; } -function analyzeXorgLog(attachID) { +nonTestedFunction analyzeXorgLog(attachID) { var infoWin = this.win.open("", "Check att. " + attachID, "width=640,height=640,status=no,location=no"); var doc = infoWin.document; @@ -676,7 +676,7 @@ function analyzeXorgLog(attachID) { * @param URLhostname String hostname of the external bugzilla * @return String with the string for the external_id SELECT */ -function getBugzillaName(URLhostname) { +nonTestedFunction getBugzillaName(URLhostname) { var bugzillaID = ""; var bzLabelNames = JSON.parse(self.data.load("bugzillalabelNames.json")); if (bzLabelNames[URLhostname]) { @@ -696,7 +696,7 @@ function getBugzillaName(URLhostname) { * + responseHeaders * + responseText */ -function XMLRPCcallback() { +nonTestedFunction XMLRPCcallback() { var that = this; this.reqCounter--; if (this.reqCounter <= 0) { @@ -728,7 +728,7 @@ function XMLRPCcallback() { * this change }; * */ -function fixAttachById(id, type, email) { +nonTestedFunction fixAttachById(id, type, email) { if (type === undefined) { type = "text/plain"; } @@ -769,7 +769,7 @@ function fixAttachById(id, type, email) { * <TR> DOM jQuery element with a bad attachment * @return none */ -function addTextLink(row) { +nonTestedFunction addTextLink(row) { var elemS = row[4].getElementsByTagName("td"); var elem = elemS[elemS.length - 1]; this.createDeadLink("addFix2TextLink", "text", elem, @@ -782,7 +782,7 @@ function addTextLink(row) { * @param evt Event which called this handler * @return none */ -function addClosingUpstream() { +nonTestedFunction addClosingUpstream() { var refs = this.doc.getElementById("external_bugs_table") .getElementsByTagName("tr"); @@ -826,7 +826,7 @@ function addClosingUpstream() { } } -function markBugTriaged() { +nonTestedFunction markBugTriaged() { // Now we lie completely, we just set keyword Triaged, // this is not just plain ASSIGNED, but // modified according to @@ -849,7 +849,7 @@ function markBugTriaged() { /** * */ -function parseBacktrace (ret) { +nonTestedFunction parseBacktrace (ret) { var splitArray = ret.split("\n"); var i = 0, ii = splitArray.length; var outStr = "", curLine = "", numStr = ""; @@ -881,7 +881,7 @@ function parseBacktrace (ret) { return ""; } -function RHBugzillaPage(win, config) { +nonTestedFunction RHBugzillaPage(win, config) { // inheritance ... call superobject's constructor BZPage.call(this, win, config); |