Permalink
Browse files

re-run tests with updates to grunt-prettify task, and with new tests …

…for pages collections and lodash in yaml from matter.
  • Loading branch information...
1 parent b49d61f commit 727323f9a6630c428eb02579d45a19d183a9cacf @jonschlinkert jonschlinkert committed Dec 5, 2013
Showing with 26,946 additions and 9,364 deletions.
  1. +11 −19 test/actual/assets_base.html
  2. +11 −19 test/actual/assets_blank_path.html
  3. +11 −19 test/actual/assets_dot_slash.html
  4. +11 −19 test/actual/assets_nested.html
  5. +11 −19 test/actual/assets_trailing_slash.html
  6. +171 −102 test/actual/collections/asc/alert.html
  7. +172 −103 test/actual/collections/asc/collections-categories.html
  8. +1,000 −0 test/actual/collections/asc/collections-pages.html
  9. +180 −110 test/actual/collections/asc/collections-tags.html
  10. +177 −105 test/actual/collections/asc/collections.html
  11. +176 −105 test/actual/collections/asc/complex.html
  12. +264 −175 test/actual/collections/asc/context.html
  13. +178 −106 test/actual/collections/asc/debug-helpers.html
  14. +179 −110 test/actual/collections/asc/example.html
  15. +185 −113 test/actual/collections/asc/gist-helper.html
  16. +972 −0 test/actual/collections/asc/lodash.html
  17. +176 −105 test/actual/collections/asc/md-helper.html
  18. +177 −108 test/actual/collections/asc/no-yfm.html
  19. +174 −105 test/actual/collections/asc/yfm-context.html
  20. +180 −109 test/actual/collections/asc/yfm.html
  21. +171 −102 test/actual/collections/complex/alert.html
  22. +172 −103 test/actual/collections/complex/collections-categories.html
  23. +1,000 −0 test/actual/collections/complex/collections-pages.html
  24. +180 −110 test/actual/collections/complex/collections-tags.html
  25. +177 −105 test/actual/collections/complex/collections.html
  26. +176 −105 test/actual/collections/complex/complex.html
  27. +264 −175 test/actual/collections/complex/context.html
  28. +178 −106 test/actual/collections/complex/debug-helpers.html
  29. +179 −110 test/actual/collections/complex/example.html
  30. +185 −113 test/actual/collections/complex/gist-helper.html
  31. +972 −0 test/actual/collections/complex/lodash.html
  32. +176 −105 test/actual/collections/complex/md-helper.html
  33. +177 −108 test/actual/collections/complex/no-yfm.html
  34. +174 −105 test/actual/collections/complex/yfm-context.html
  35. +180 −109 test/actual/collections/complex/yfm.html
  36. +171 −102 test/actual/collections/custom/alert.html
  37. +172 −103 test/actual/collections/custom/collections-categories.html
  38. +1,000 −0 test/actual/collections/custom/collections-pages.html
  39. +180 −110 test/actual/collections/custom/collections-tags.html
  40. +177 −105 test/actual/collections/custom/collections.html
  41. +176 −105 test/actual/collections/custom/complex.html
  42. +264 −175 test/actual/collections/custom/context.html
  43. +178 −106 test/actual/collections/custom/debug-helpers.html
  44. +179 −110 test/actual/collections/custom/example.html
  45. +185 −113 test/actual/collections/custom/gist-helper.html
  46. +972 −0 test/actual/collections/custom/lodash.html
  47. +176 −105 test/actual/collections/custom/md-helper.html
  48. +177 −108 test/actual/collections/custom/no-yfm.html
  49. +174 −105 test/actual/collections/custom/yfm-context.html
  50. +180 −109 test/actual/collections/custom/yfm.html
  51. +175 −106 test/actual/collections/desc/alert.html
  52. +176 −107 test/actual/collections/desc/collections-categories.html
  53. +1,000 −0 test/actual/collections/desc/collections-pages.html
  54. +188 −118 test/actual/collections/desc/collections-tags.html
  55. +181 −109 test/actual/collections/desc/collections.html
  56. +180 −109 test/actual/collections/desc/complex.html
  57. +268 −179 test/actual/collections/desc/context.html
  58. +182 −110 test/actual/collections/desc/debug-helpers.html
  59. +183 −114 test/actual/collections/desc/example.html
  60. +189 −117 test/actual/collections/desc/gist-helper.html
  61. +972 −0 test/actual/collections/desc/lodash.html
  62. +180 −109 test/actual/collections/desc/md-helper.html
  63. +181 −112 test/actual/collections/desc/no-yfm.html
  64. +178 −109 test/actual/collections/desc/yfm-context.html
  65. +184 −113 test/actual/collections/desc/yfm.html
  66. +7 −16 test/actual/noyfm/no-yfm.html
  67. +171 −102 test/actual/paths/alert.html
  68. +172 −103 test/actual/paths/collections-categories.html
  69. +1,000 −0 test/actual/paths/collections-pages.html
  70. +180 −110 test/actual/paths/collections-tags.html
  71. +177 −105 test/actual/paths/collections.html
  72. +176 −105 test/actual/paths/complex.html
  73. +264 −175 test/actual/paths/context.html
  74. +178 −106 test/actual/paths/debug-helpers.html
  75. +179 −110 test/actual/paths/example.html
  76. +185 −113 test/actual/paths/gist-helper.html
  77. +972 −0 test/actual/paths/lodash.html
  78. +176 −105 test/actual/paths/md-helper.html
  79. +177 −108 test/actual/paths/no-yfm.html
  80. +174 −105 test/actual/paths/yfm-context.html
  81. +180 −109 test/actual/paths/yfm.html
  82. +183 −102 test/actual/plugin_preprocess/alert.html
  83. +184 −103 test/actual/plugin_preprocess/collections-categories.html
  84. +1,058 −0 test/actual/plugin_preprocess/collections-pages.html
  85. +192 −110 test/actual/plugin_preprocess/collections-tags.html
  86. +189 −105 test/actual/plugin_preprocess/collections.html
  87. +188 −105 test/actual/plugin_preprocess/complex.html
  88. +276 −175 test/actual/plugin_preprocess/context.html
  89. +190 −106 test/actual/plugin_preprocess/debug-helpers.html
  90. +191 −110 test/actual/plugin_preprocess/example.html
  91. +197 −113 test/actual/plugin_preprocess/gist-helper.html
  92. +1,030 −0 test/actual/plugin_preprocess/lodash.html
  93. +188 −105 test/actual/plugin_preprocess/md-helper.html
  94. +189 −108 test/actual/plugin_preprocess/no-yfm.html
  95. +186 −105 test/actual/plugin_preprocess/yfm-context.html
  96. +192 −109 test/actual/plugin_preprocess/yfm.html
  97. +12 −21 test/actual/single_page.html
  98. +34 −43 test/actual/yfm/associative-arrays.html
  99. +34 −43 test/actual/yfm/block-literals.html
  100. +34 −43 test/actual/yfm/comments.html
  101. +34 −43 test/actual/yfm/data-files.html
  102. +34 −43 test/actual/yfm/data-types.html
  103. +34 −43 test/actual/yfm/document.html
  104. +34 −43 test/actual/yfm/lists.html
  105. +34 −43 test/actual/yfm/relational-trees.html
  106. +34 −43 test/actual/yfm/underscore.html
  107. +37 −47 test/actual/yfm/variables.html
  108. +2 −2 test/fixtures/layouts/default.hbs
  109. +15 −0 test/fixtures/pages/collections-pages.hbs
  110. +1 −0 test/fixtures/pages/complex.hbs
  111. +3 −1 test/fixtures/pages/debug-helpers.hbs
  112. +1 −1 test/fixtures/pages/example.hbs
  113. +3 −2 test/fixtures/pages/gist-helper.hbs
  114. +6 −0 test/fixtures/pages/lodash.hbs
  115. +3 −0 test/fixtures/pages/md.md
  116. +1 −0 test/fixtures/pages/yfm.hbs
@@ -12,7 +12,7 @@
<section id="validate"></section>
<div class="docs-section">
<div class="docs-header" id="content">
- <h4><strong class="text-muted">test/fixtures/assets_path/assets.hbs</strong> &#x2192;
+ <h4><strong class="text-muted">test/fixtures/assets_path/assets.hbs</strong> &#x2192;
<strong class="text-success">test/actual/assets_base.html</strong>
</h4>
</div>
@@ -73,22 +73,13 @@
<div class="col-md-9" role="main">
<div class="docs-section">
<div class="docs-header" id="content">
- <h4>
- <strong>Page layout:</strong> default.hbs
- </h4>
- <h4>
+ <h4><strong>Page layout:</strong> default.hbs</h4> <h4>
<strong>Page src:</strong> test/fixtures/assets_path/assets.hbs
</h4>
- <h4>
- <strong>Page dest:</strong> test/actual/assets_base.html
- </h4>
- <h4>
+ <h4><strong>Page dest:</strong> test/actual/assets_base.html</h4> <h4>
<strong>Dest filename:</strong> assets_base.html
</h4>
- <h4>
- <strong>Dest basename:</strong> assets
- </h4>
- <h4>
+ <h4><strong>Dest basename:</strong> assets</h4> <h4>
<strong>Page title:</strong> (no title defined)
</h4>
</div>
@@ -114,7 +105,7 @@
<h1>Content</h1>
</div>
<ul>
- <li> <a href="assets_base.html">assets_base.html</a> </li>
+ <li> <a href="assets_base.html">assets_base.html</a> </li>
</ul>
<hr>
<div style="display: none">
@@ -153,7 +144,7 @@
-->
<h1>Each pages</h1>
<ul>
- <li> <a href="assets_base.html">assets</a> </li>
+ <li> <a href="assets_base.html">assets_base.html</a> </li>
<!--
"this"
===============================
@@ -213,7 +204,7 @@
"last": true,
"middle": false,
"number": 1,
- "page": "<!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Layout filename: '{{layout}}'</title>\n <link rel=\"stylesheet\" href=\"http://getbootstrap.com/dist/css/bootstrap.min.css\">\n <link rel=\"stylesheet\" href=\"{{assets}}/validation.css\">\n </head>\n <body style=\"padding-top: 60px;\">\n <div class=\"container\">\n\n <!-- validate assets path -->\n <section id=\"validate\"></section>\n <div class=\"docs-section\">\n <div class=\"docs-header\" id=\"content\">\n <h4><strong class=\"text-muted\">{{page.src}}</strong> &#x2192; <strong class=\"text-success\">{{page.dest}}</strong></h4>\n </div>\n <hr>\n </div>\n\n {{pager pagination}}\n <hr>\n\n <div class=\"row\">\n <!-- Column: sidebar -->\n <div class=\"col-md-3\">\n <div class=\"bs-sidebar hidden-print\" role=\"complementary\">\n <!-- pagination -->\n {{nav pagination}}\n </div>\n </div>\n <!-- Column: content -->\n <div class=\"col-md-9\" role=\"main\">\n <div class=\"docs-section\">\n <div class=\"docs-header\" id=\"content\">\n <h4><strong>Page layout:</strong> {{default originalLayout '(no layout defined)'}}</h4>\n <h4><strong>Page src:</strong> {{page.src}}</h4>\n <h4><strong>Page dest:</strong> {{page.dest}}</h4>\n <h4><strong>Dest filename:</strong> {{page.filename}}</h4>\n <h4><strong>Dest basename:</strong> {{page.basename}}</h4>\n <h4> <strong>Page title:</strong> {{default title '(no title defined)'}}</h4>\n </div>\n\n <hr>\n <div class=\"row\">\n <div class=\"col-md-6\">\n <!-- Categories Collection -->\n {{#if categories}}\n {{> collections-categories }}\n {{/if}}\n </div>\n <div class=\"col-md-6\">\n {{#if tags}}\n {{> collections-tags }}\n {{/if}}\n </div>\n </div>\n\n <hr>\n\n <p>Examples to test the \"relative\" and \"assets\" variables, and to show how they work</p>\n\n{{#assets_nested}}\n<h1>\"Public\" Folder </h1>\n<p>Public (assets) folder is in the project root</p>\n<pre>\noriginalAssets: {{originalAssets}}\nassets: {{assets}}\ndest: {{dest}}\nsrc: {{src}}\nassets_nested: {\n options: {assets: 'test/actual/public'},\n files: {'test/actual/assets_nested.html': ['test/files/assets.hbs']}\n},\n</pre>\n{{/assets_nested}}\n\n\n{{#assets_base}}\n
+ "page": "<!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Layout filename: '{{layout}}'</title>\n <link rel=\"stylesheet\" href=\"http://getbootstrap.com/dist/css/bootstrap.min.css\">\n <link rel=\"stylesheet\" href=\"{{assets}}/validation.css\">\n </head>\n <body style=\"padding-top: 60px;\">\n <div class=\"container\">\n\n <!-- validate assets path -->\n <section id=\"validate\"></section>\n <div class=\"docs-section\">\n <div class=\"docs-header\" id=\"content\">\n <h4><strong class=\"text-muted\">{{page.src}}</strong> &#x2192; <strong class=\"text-success\">{{page.dest}}</strong></h4>\n </div>\n <hr>\n </div>\n\n {{pager pagination}}\n <hr>\n\n <div class=\"row\">\n <!-- Column: sidebar -->\n <div class=\"col-md-3\">\n <div class=\"bs-sidebar hidden-print\" role=\"complementary\">\n <!-- pagination -->\n {{nav pagination}}\n </div>\n </div>\n <!-- Column: content -->\n <div class=\"col-md-9\" role=\"main\">\n <div class=\"docs-section\">\n <div class=\"docs-header\" id=\"content\">\n <h4><strong>Page layout:</strong> {{default originalLayout '(no layout defined)'}}</h4>\n <h4><strong>Page src:</strong> {{page.src}}</h4>\n <h4><strong>Page dest:</strong> {{page.dest}}</h4>\n <h4><strong>Dest filename:</strong> {{page.filename}}</h4>\n <h4><strong>Dest basename:</strong> {{page.basename}}</h4>\n <h4> <strong>Page title:</strong> {{default title '(no title defined)'}}</h4>\n </div>\n\n <hr>\n <div class=\"row\">\n <div class=\"col-md-6\">\n <!-- Categories Collection -->\n {{#if categories}}\n {{> collections-categories }}\n {{/if}}\n </div>\n <div class=\"col-md-6\">\n {{#if tags}}\n {{> collections-tags }}\n {{/if}}\n </div>\n </div>\n\n <hr>\n\n <p>Examples to test the \"relative\" and \"assets\" variables, and to show how they work</p>\n\n{{#assets_nested}}\n<h1>\"Public\" Folder </h1>\n<p>Public (assets) folder is in the project root</p>\n<pre>\noriginalAssets: {{originalAssets}}\nassets: {{assets}}\ndest: {{dest}}\nsrc: {{src}}\nassets_nested: {\n options: {assets: 'test/actual/public'},\n files: {'test/actual/assets_nested.html': ['test/files/assets.hbs']}\n},\n</pre>\n{{/assets_nested}}\n\n\n{{#assets_base}}\n
<h1>Same Folder</h1>\n
<p>Assets folder is in the same dir as dest files.</p>\n<pre>\nassets_base: {\n options: {assets: 'test/actual'},\n files: {'test/actual/assets_base.html': ['test/files/assets.hbs']}\n},\n</pre>\n{{/assets_base}}\n\n\n{{#assets_trailing_slash}}\n
<h1>Project Root</h1>\n
@@ -222,17 +213,18 @@
<p>Assets folder is in the project rool, which is not the same dir as the dest files.</p>\n<pre>\nassets_dot_slash: {\n options: {assets: './'},\n files: {'test/actual/assets_dot_slash.html': ['test/files/assets.hbs']}\n}\n</pre>\n{{/assets_dot_slash}}\n\n\n{{#assets_blank_path}}\n
<h1>Same Folder With Slash</h1>\n
<p>Assets folder is in the same dir as dest files</p>\n<pre>\nassets_blank_path: {\n options: {assets: 'test/actual'},\n files: {'test/actual/assets_blank_path.html': ['test/files/assets.hbs']}\n}\n</pre>\n{{/assets_blank_path}}\n\n
- <div class=\ "docs-header\" id=\ "content\">\n
+ <div class=\
+ "docs-header\" id=\ "content\">\n
<h1>Content</h1>\n</div>\n
<ul>\n {{#each pages}}\n
- <li> <a href=\ "{{relative ../page.dest dest}}\">{{filename}}</a> </li>\n {{/each}}\n</ul>\n\n
+ <li> <a href=\ "{{relativeLink}}\">{{filename}}</a> </li>\n {{/each}}\n</ul>\n\n
<hr>\n
<div style=\ "display: none\">\n\n
<h1>Page</h1>\n
<!--\n \"this\"\n ===============================\n this.src: {{this.src}}\n this.dest: {{this.dest}}\n this.layout: {{this.layout}}\n this.dirname: {{this.dirname}}\n this.filename: {{this.filename}}\n this.pagename: {{this.pagename}}\n this.basename: {{this.basename}}\n this.ext: {{this.ext}}\n\n \"page\"\n ===============================\n page.src: {{page.src}}\n page.dest: {{page.dest}}\n page.layout: {{page.layout}}\n page.dirname: {{page.dirname}}\n page.filename: {{page.filename}}\n page.pagename: {{page.pagename}}\n page.basename: {{page.basename}}\n page.ext: {{page.ext}}\n\n \"root\"\n ===============================\n src: {{src}}\n dest: {{dest}}\n layout: {{layout}}\n dirname: {{dirname}}\n filename: {{filename}}\n pagename: {{pagename}}\n basename: {{basename}}\n ext: {{ext}}\n -->\n
<h1>Each pages</h1>\n
<ul>\n {{#each pages}}
- <li> <a href=\ "{{relative ../page.dest dest}}\">{{basename}}</a> </li>\n
+ <li> <a href=\ "{{relativeLink}}\">{{filename}}</a> </li>\n
<!--\n \"this\"\n ===============================\n this.src: {{this.src}}\n this.dest: {{this.dest}}\n this.dirname: {{this.dirname}}\n this.filename: {{this.filename}}\n this.pagename: {{this.pagename}}\n this.basename: {{this.basename}}\n this.ext: {{this.ext}}\n\n \"page\"\n ===============================\n page.src: {{../page.src}}\n page.dest: {{../page.dest}}\n page.dirname: {{../page.dirname}}\n page.filename: {{../page.filename}}\n page.pagename: {{../page.pagename}}\n page.basename: {{../page.basename}}\n page.ext: {{../page.ext}}\n\n \"root\"\n ===============================\n src: {{src}}\n dest: {{dest}}\n dirname: {{dirname}}\n filename: {{filename}}\n pagename: {{pagename}}\n basename: {{basename}}\n ext: {{ext}}\n -->\n {{/each}}\n</ul>\n\n
<h1>Debug Info</h1>\n {{{inspect page 'json'}}}\n</div>\n</div>\n</div>\n</div>\n</div>\n
<script src=\ "{{assets}}/validation.js\"></script>\n</body>\n
Oops, something went wrong.

0 comments on commit 727323f

Please sign in to comment.