瀏覽代碼

whitespace fixes

tags/0.5.0-vsc
thegrandpoobah 16 年之前
父節點
當前提交
b09b5f2ec5
共有 1 個檔案被更改,包括 3 行新增11 行删除
  1. +3
    -11
      test/unit.js

+ 3
- 11
test/unit.js 查看文件

@@ -222,7 +222,7 @@ test("'#' (Sections)", function() {
},
{}
),
'\n t1\n 0\n t2\n 1\n\n t1\n 0\n t2\n 1\n\n',
'\n t1\n 0\n\n t2\n 1\n\n\n t1\n 0\n\n t2\n 1\n\n',
'Lazy match of Section and Inverted Section'
);
@@ -239,7 +239,7 @@ test("'#' (Sections)", function() {
},
{}
),
'\n <h1>this is an object</h1>\n <p>one of its attributes is a list</p>\n <ul>\n <li>listitem1</li>\n <li>listitem2</li>\n </ul>\n',
'\n <h1>this is an object</h1>\n <p>one of its attributes is a list</p>\n <ul>\n \n <li>listitem1</li>\n \n <li>listitem2</li>\n \n </ul>\n\n',
'Lazy match of Section and Inverted Section'
);
});
@@ -520,15 +520,7 @@ test("Demo", function() {
}
};
var expected_result = [
'<h1>Colors</h1>',
' <ul>',
' <li><strong>red</strong></li>',
' <li><a href="#Green">green</a></li>',
' <li><a href="#Blue">blue</a></li>',
' </ul>',
''
].join('\n');
var expected_result = '<h1>Colors</h1>\n\n <ul>\n \n \n <li><strong>red</strong></li>\n \n \n <li><a href=\"#Red\">red</a></li>\n \n \n \n \n <li><a href=\"#Green\">green</a></li>\n \n \n \n \n <li><a href=\"#Blue\">blue</a></li>\n \n \n </ul>\n\n';
equals(
Mustache.to_html(


Loading…
取消
儲存