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 55244390c8
commit 8173382c4b
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+$/);
});
});
});
});

43
npm-shrinkwrap.json generated
View File

@@ -1142,7 +1142,7 @@
}
},
"dgeni-packages": {
"version": "0.10.0-rc.3",
"version": "0.10.0-rc.5",
"dependencies": {
"catharsis": {
"version": "0.7.1"
@@ -1197,42 +1197,12 @@
}
}
},
"dgeni": {
"version": "0.4.0-rc.2",
"dependencies": {
"dependency-graph": {
"version": "0.1.0",
"dependencies": {
"underscore": {
"version": "1.4.4"
}
}
},
"di": {
"version": "0.0.1"
},
"optimist": {
"version": "0.6.1",
"dependencies": {
"wordwrap": {
"version": "0.0.2"
},
"minimist": {
"version": "0.0.10"
}
}
},
"q": {
"version": "0.9.7"
},
"validate.js": {
"version": "0.2.0"
}
}
},
"esprima": {
"version": "1.2.2"
},
"estraverse": {
"version": "1.5.1"
},
"glob": {
"version": "3.2.11",
"dependencies": {
@@ -1244,9 +1214,6 @@
"lodash": {
"version": "2.4.1"
},
"marked": {
"version": "0.2.10"
},
"minimatch": {
"version": "0.3.0",
"dependencies": {
@@ -1725,7 +1692,7 @@
},
"grunt-jasmine-node": {
"version": "0.1.0",
"from": "grunt-jasmine-node@git://github.com/vojtajina/grunt-jasmine-node.git#fix-grunt-exit-code",
"from": "grunt-jasmine-node@git://github.com/vojtajina/grunt-jasmine-node.git#ced17cbe52c1412b2ada53160432a5b681f37cd7",
"resolved": "git://github.com/vojtajina/grunt-jasmine-node.git#ced17cbe52c1412b2ada53160432a5b681f37cd7"
},
"grunt-jscs-checker": {