aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/collectSpec.js
diff options
context:
space:
mode:
authorIgor Minar2010-11-15 22:51:16 -0800
committerIgor Minar2010-11-18 02:34:31 -0800
commitc7052f098d47f60228c5d60ad16fcac8ce2b22c8 (patch)
tree3c43d0aafa1b263a0d5c838b8e30059a9c434188 /docs/spec/collectSpec.js
parent7d6f5f986e374964d1467b6408f5ac8faa2985ba (diff)
downloadangular.js-c7052f098d47f60228c5d60ad16fcac8ce2b22c8.tar.bz2
add support for @deprecated ng:doc annotation + show warnings in templates
Diffstat (limited to 'docs/spec/collectSpec.js')
-rw-r--r--docs/spec/collectSpec.js22
1 files changed, 14 insertions, 8 deletions
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js
index 9de08dc8..6f82ec3d 100644
--- a/docs/spec/collectSpec.js
+++ b/docs/spec/collectSpec.js
@@ -182,21 +182,27 @@ describe('collect', function(){
});
});
- describe('@describe', function(){
+ describe('@description', function(){
it('should support pre blocks', function(){
TAG.description(doc, 'description', '<pre>abc</pre>');
expect(doc.description).toEqual('<div ng:non-bindable><pre class="brush: js; html-script: true; toolbar: false;">abc</pre></div>');
});
-
- describe('@example', function(){
- it('should not remove {{}}', function(){
- TAG.example(doc, 'example', 'text {{ abc }}');
- expect(doc.example).toEqual('text {{ abc }}');
- });
-
+ });
+
+ describe('@example', function(){
+ it('should not remove {{}}', function(){
+ TAG.example(doc, 'example', 'text {{ abc }}');
+ expect(doc.example).toEqual('text {{ abc }}');
});
});
+ describe('@deprecated', function() {
+ it('should parse @deprecated', function() {
+ TAG.deprecated(doc, 'deprecated', 'Replaced with foo.');
+ expect(doc.deprecated).toBe('Replaced with foo.');
+ })
+ });
+
});
describe('trim', function(){