コード例 #1
0
        public TestJSBeautifierIndentation()
        {
            this.beautifier = new Beautifier();
            BeautifierOptions bo = this.beautifier.Opts;

            bo.IndentWithTabs = true;
        }
コード例 #2
0
        public void TestFunctionIndent()
        {
            BeautifierOptions bo = this.beautifier.Opts;

            bo.IndentWithTabs       = true;
            bo.KeepArrayIndentation = true;
            Assert.AreEqual <string>(this.beautifier.Beautify("var foo = function(){ bar() }();"), "var foo = function() {\n\tbar()\n}();");
        }