aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-xmlrpc.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-23 20:18:23 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-23 20:18:23 +0100
commit2e5993bc9bd0d468f4e9d12dd39e0548ba9adda1 (patch)
treef31a0d612efbfa5beb78e4718768c55c650f14d8 /tests/test-xmlrpc.js
parentc662ccddab2cbcc6d13f49a21c04a6aea808f457 (diff)
downloadbugzilla-triage-2e5993bc9bd0d468f4e9d12dd39e0548ba9adda1.tar.gz
Fix indentation and else for Mozilla coding guidelines.
Diffstat (limited to 'tests/test-xmlrpc.js')
-rw-r--r--tests/test-xmlrpc.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/test-xmlrpc.js b/tests/test-xmlrpc.js
index afb78c5..677a581 100644
--- a/tests/test-xmlrpc.js
+++ b/tests/test-xmlrpc.js
@@ -3,30 +3,30 @@
"use strict";
var xrpc = require("xmlrpc");
var xmlOut = "<?xml version=\"1.0\"?>\n" +
- "<methodCall>\n<methodName>bugzilla.updateAttachMimeType</methodName>\n" +
- "<params>\n<param>\n<value><struct>\n<member>\n<name>attach_id</name>\n" +
- "<value><string>myId</string></value>\n</member>\n<member>\n" +
- "<name>mime_type</name>\n<value><string>text/plain</string></value>\n</member>\n" +
- "<member>\n<name>nomail</name>\n<value><string>billg@microsoft.com</string>" +
- "</value>\n</member>\n</struct>\n</value>\n</param>\n<param>\n" +
- "<value><string>me@example.com</string></value>\n</param>\n" +
- "<param>\n<value><string>secret</string></value>\n</param>\n" +
- "<param>\n<value><double>3.14</double></value>\n</param>\n" +
- "<param>\n<value><boolean>1</boolean></value>\n</param>\n" +
- "</params>\n</methodCall>";
+ "<methodCall>\n<methodName>bugzilla.updateAttachMimeType</methodName>\n" +
+ "<params>\n<param>\n<value><struct>\n<member>\n<name>attach_id</name>\n" +
+ "<value><string>myId</string></value>\n</member>\n<member>\n" +
+ "<name>mime_type</name>\n<value><string>text/plain</string></value>\n</member>\n" +
+ "<member>\n<name>nomail</name>\n<value><string>billg@microsoft.com</string>" +
+ "</value>\n</member>\n</struct>\n</value>\n</param>\n<param>\n" +
+ "<value><string>me@example.com</string></value>\n</param>\n" +
+ "<param>\n<value><string>secret</string></value>\n</param>\n" +
+ "<param>\n<value><double>3.14</double></value>\n</param>\n" +
+ "<param>\n<value><boolean>1</boolean></value>\n</param>\n" +
+ "</params>\n</methodCall>";
// testing xrpc.XMLRPCMessage
exports.ensureGenerateXMLRPC = function (test) {
- var msg = new xrpc.XMLRPCMessage("bugzilla.updateAttachMimeType");
- msg.addParameter({
- 'attach_id' : "myId",
- 'mime_type' : "text/plain",
- 'nomail' : "billg@microsoft.com"
- });
- msg.addParameter("me@example.com");
- msg.addParameter("secret");
- msg.addParameter(3.14);
- msg.addParameter(true);
- test.assertEqual(msg.xml(), xmlOut,
- "generate XML-RPC message");
+ var msg = new xrpc.XMLRPCMessage("bugzilla.updateAttachMimeType");
+ msg.addParameter({
+ 'attach_id' : "myId",
+ 'mime_type' : "text/plain",
+ 'nomail' : "billg@microsoft.com"
+ });
+ msg.addParameter("me@example.com");
+ msg.addParameter("secret");
+ msg.addParameter(3.14);
+ msg.addParameter(true);
+ test.assertEqual(msg.xml(), xmlOut,
+ "generate XML-RPC message");
};