diff --git a/source/Ox.UI/js/Code/Ox.DocPage.js b/source/Ox.UI/js/Code/Ox.DocPage.js index 401571d1..ffaaa294 100644 --- a/source/Ox.UI/js/Code/Ox.DocPage.js +++ b/source/Ox.UI/js/Code/Ox.DocPage.js @@ -93,7 +93,7 @@ Ox.DocPage = function(options, self) { ]; [ 'description', 'usage', 'arguments', 'properties', - 'events', 'examples', 'source' + 'events', 'tests', 'source' ].forEach(function(section) { var className = 'OxLine' + Ox.uid(); if (item[section]) { @@ -151,26 +151,28 @@ Ox.DocPage = function(options, self) { }); }) ) - .append('' + Ox.toTitleCase(section) + '') + .append('' + Ox.toTitleCase( + section == 'tests' ? 'examples' : section + ) + '') ); - if (section == 'examples') { - item.examples.forEach(function(example) { + if (section == 'tests') { + item.tests.forEach(function(test) { $elements.push($('
> '
- + Ox.encodeHTMLEntities(example.statement)
+ + Ox.encodeHTMLEntities(test.statement)
.replace(/ /g, ' ')
.replace(/\n/g, '
\n ')
+ ''
)
);
- example.result && $elements.push($('' + Ox.encodeHTMLEntities(example.result) + ''
+ '' + Ox.encodeHTMLEntities(test.result) + ''
)
)
});
@@ -184,7 +186,7 @@ Ox.DocPage = function(options, self) {
+ ':' + self.options.item.line + ''
)
);
- Ox.print('IS::', item.source);
+ //Ox.print('IS::', item.source);
$elements.push(
Ox.SyntaxHighlighter({
replace: self.options.replace,