chore(docs): remove excess indentation from code blocks

dgeni-packages 0.10.0-rc.5 has a fix for this problem, so this commit updates
to that version.
Adds a new e2e test to prove this is fixed.

Closes #8963
This commit is contained in:
Peter Bacon Darwin
2014-09-15 14:57:07 +01:00
parent dea705b2cf
commit 9cc968689f
2 changed files with 15 additions and 38 deletions

View File

@@ -37,5 +37,15 @@ describe("doc.angularjs.org", function() {
var code = element.all(by.css('tt')).first();
expect(code.getText()).toContain('guest!!!');
});
it("should trim indentation from code blocks", function() {
browser.get('index-debug.html#!/api/ng/type/$rootScope.Scope');
var codeBlocks = element.all(by.css('pre > code.lang-js'));
codeBlocks.each(function(codeBlock) {
var firstSpan = codeBlock.all(by.css('span')).first();
expect(firstSpan.getText()).not.toMatch(/^\W+$/);
});
});
});
});