Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore(docs): remove excess indentation from code blocks
Browse files Browse the repository at this point in the history
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
  • Loading branch information
petebacondarwin committed Sep 15, 2014
1 parent 5524439 commit 8173382
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 38 deletions.
10 changes: 10 additions & 0 deletions docs/app/e2e/api-docs/api-pages.scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -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+$/);
});
});
});
});
43 changes: 5 additions & 38 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8173382

Please sign in to comment.