aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/sourceLinkSpec.js
diff options
context:
space:
mode:
authorBrian Ford2013-07-11 15:32:33 -0700
committerBrian Ford2013-07-11 15:32:33 -0700
commit2c0753225a506185bf8b09b344e7615957009f02 (patch)
tree771cb6a6b6267318d981d07b03f2e1e3f687f6cc /docs/spec/sourceLinkSpec.js
parent3b898664eea9913b6b25261d7310a61de476d173 (diff)
downloadangular.js-2c0753225a506185bf8b09b344e7615957009f02.tar.bz2
revert: feat(ngDocs): add links to source for API
This reverts commit 61fb5863df4afe0fad688a44ff78b245b8439db2.
Diffstat (limited to 'docs/spec/sourceLinkSpec.js')
-rw-r--r--docs/spec/sourceLinkSpec.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/docs/spec/sourceLinkSpec.js b/docs/spec/sourceLinkSpec.js
deleted file mode 100644
index 3dc73cc8..00000000
--- a/docs/spec/sourceLinkSpec.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var ngdoc = require('../src/ngdoc.js');
-var gruntUtil = require('../../lib/grunt/utils.js');
-
-describe('Docs Links', function() {
-
- describe('links', function() {
- var doc;
-
- beforeEach(function() {
- doc = new ngdoc.Doc("@ngdoc function\n@name ng.filter:a\n@function");
- doc.section = 'api';
- doc.file = 'test.js';
- doc.line = 42;
- doc.parse();
- });
-
- it('should have an "improve this doc" button', function() {
- expect(doc.html()).
- toContain('<a href="http://github.com/angular/angular.js/edit/master/test.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a>');
- });
-
- it('should have an "view source" button', function() {
- expect(doc.html()).
- toContain('<a href="http://github.com/angular/angular.js/tree/v' + gruntUtil.getVersion().number + '/test.js#L42" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a>');
- });
-
- });
-
-});