From 4597a8dbc2da729924439c4b42ada0d16999d018 Mon Sep 17 00:00:00 2001 From: Frank Bennett Date: Thu, 24 Aug 2017 20:23:11 +0900 Subject: [PATCH] Fix indenting --- tests/citeproc-js/makecitationcluster.js | 57 ++++++++++++------------ 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/tests/citeproc-js/makecitationcluster.js b/tests/citeproc-js/makecitationcluster.js index 32404639c..cd5ff4020 100644 --- a/tests/citeproc-js/makecitationcluster.js +++ b/tests/citeproc-js/makecitationcluster.js @@ -2,9 +2,9 @@ dojo.provide("citeproc_js.makecitationcluster"); doh.registerGroup("citeproc_js.makecitationcluster", - [ - function testMakeCitationCluster(){ - var xml = "" - var style = citeproc_js.makecitationcluster.initCiteproc(xml); + var style = citeproc_js.makecitationcluster.initCiteproc(xml); - style.updateUncitedItems(["Item-3", "Item-4"]); + style.updateUncitedItems(["Item-3", "Item-4"]); var bib = style.makeBibliography(); - doh.assertEqual(2, bib[1].length); + doh.assertEqual(2, bib[1].length); var result = citeproc_js.makecitationcluster.doMakeCitationClusterItemOneTwo(style); - doh.assertEqual("Hello Alan Partridge!, p. 15; Hello ZZ Top!, p. 10", result); + doh.assertEqual("Hello Alan Partridge!, p. 15; Hello ZZ Top!, p. 10", result); var bib = style.makeBibliography(); - doh.assertEqual(2, bib[1].length); - doh.assertEqual("
Goodbye!
\n", bib[1][0]); - doh.assertEqual("
Goodbye again!
\n", bib[1][1]); - } - ], - function(){ //setup - citeproc_js.makecitationcluster.initCiteproc = function(myxml){ - var sys = new StdRhinoTest(null, "jsc"); + doh.assertEqual(2, bib[1].length); + doh.assertEqual("
Goodbye!
\n", bib[1][0]); + doh.assertEqual("
Goodbye again!
\n", bib[1][1]); + } + ], + function(){ //setup + citeproc_js.makecitationcluster.initCiteproc = function(myxml){ + var sys = new StdRhinoTest(null, "jsc"); sys.test.input = [ { id: "Item-1", @@ -74,29 +74,29 @@ doh.registerGroup("citeproc_js.makecitationcluster", } ]; sys._setCache(); - var style = new CSL.Engine(sys, myxml); + var style = new CSL.Engine(sys, myxml); return style; } - citeproc_js.makecitationcluster.doMakeCitationClusterItemOne = function(style){ - var ret = style.makeCitationCluster([ + citeproc_js.makecitationcluster.doMakeCitationClusterItemOne = function(style){ + var ret = style.makeCitationCluster([ { id: "Item-1", position: 0 } ]) return ret; - }; - citeproc_js.makecitationcluster.doMakeCitationClusterItemTwo = function(style){ - var ret = style.makeCitationCluster([ + }; + citeproc_js.makecitationcluster.doMakeCitationClusterItemTwo = function(style){ + var ret = style.makeCitationCluster([ { id: "Item-2", position: 0 } ]) return ret; - }; - citeproc_js.makecitationcluster.doMakeCitationClusterItemOneTwo = function(style){ - var ret = style.makeCitationCluster([ + }; + citeproc_js.makecitationcluster.doMakeCitationClusterItemOneTwo = function(style){ + var ret = style.makeCitationCluster([ { id: "Item-1", position: 0, @@ -109,11 +109,10 @@ doh.registerGroup("citeproc_js.makecitationcluster", } ]) return ret; - }; - }, - function(){ // teardown - } - + }; + }, + function(){ // teardown + } ); /*