From 2e5993bc9bd0d468f4e9d12dd39e0548ba9adda1 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 23 Mar 2011 20:18:23 +0100 Subject: Fix indentation and else for Mozilla coding guidelines. --- tests/test-xmlrpc.js | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'tests/test-xmlrpc.js') 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 = "\n" + - "\nbugzilla.updateAttachMimeType\n" + - "\n\n\n\nattach_id\n" + - "myId\n\n\n" + - "mime_type\ntext/plain\n\n" + - "\nnomail\nbillg@microsoft.com" + - "\n\n\n\n\n\n" + - "me@example.com\n\n" + - "\nsecret\n\n" + - "\n3.14\n\n" + - "\n1\n\n" + - "\n"; + "\nbugzilla.updateAttachMimeType\n" + + "\n\n\n\nattach_id\n" + + "myId\n\n\n" + + "mime_type\ntext/plain\n\n" + + "\nnomail\nbillg@microsoft.com" + + "\n\n\n\n\n\n" + + "me@example.com\n\n" + + "\nsecret\n\n" + + "\n3.14\n\n" + + "\n1\n\n" + + "\n"; // 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"); }; -- cgit