aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-01 01:27:07 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-01 01:27:07 +0200
commit655dcd3b809c80ca6ca2ae001202064dd594df2b (patch)
tree554332b216f36f0957e9bbe09e5f518b409c019b /lib/rhbzpage.js
parent43218b75f3df450b97992815322c2d668ba2bab7 (diff)
downloadbugzilla-triage-655dcd3b809c80ca6ca2ae001202064dd594df2b.tar.gz
Adding unit tests for xmlrpc.js
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index b007982..f318528 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -4,6 +4,8 @@
// http://www.opensource.org/licenses/mit-license.php
"use strict";
var utilMod = require("util");
+var xrpc = require("xmlrpc");
+var xhr = require("xhr");
// var TriagedDistro = 13;
// var NumberOfFrames = 7;
// var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi";
@@ -641,7 +643,7 @@ RHBugzillaPage.prototype.fillInChipMagic = function () {
attURL = "https://bugzilla.redhat.com/attachment.cgi?id="+XorgLogAttID;
that = this;
- let req = new XMLHttpRequest();
+ let req = new xhrMod.XMLHttpRequest();
req.open("GET",attURL,true);
req.onreadystatechange = function (aEvt) {
if (req.readyState == 4) {
@@ -888,7 +890,7 @@ RHBugzillaPage.prototype.fixAttachById = function(id, type, email) {
email = false;
}
- let msg = new XMLRPCMessage("bugzilla.updateAttachMimeType");
+ let msg = new xrpc.XMLRPCMessage("bugzilla.updateAttachMimeType");
msg.addParameter( {
'attach_id' : id,
'mime_type' : type,