diff options
| author | Igor Minar | 2010-11-16 17:02:04 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-11-18 02:34:52 -0800 |
| commit | 71c2f24fc64e8d38089ac9476d05e01baf448879 (patch) | |
| tree | 1313772c9b21cd7f5fc5ba7f9ac25265ca35fd16 /docs/spec/collectSpec.js | |
| parent | fc78738cc6e1e9c7a3b381348348b48fe1ce8fb4 (diff) | |
| download | angular.js-71c2f24fc64e8d38089ac9476d05e01baf448879.tar.bz2 | |
remove extra toolbar directive and support multiple pre's in describe
Diffstat (limited to 'docs/spec/collectSpec.js')
| -rw-r--r-- | docs/spec/collectSpec.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js index 6f82ec3d..4d398be3 100644 --- a/docs/spec/collectSpec.js +++ b/docs/spec/collectSpec.js @@ -185,7 +185,19 @@ describe('collect', 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>'); + expect(doc.description). + toBe('<div ng:non-bindable><pre class="brush: js; html-script: true;">abc</pre></div>'); + }); + + it('should support multiple pre blocks', function() { + TAG.description(doc, 'description', 'foo \n<pre>abc</pre>\n#bah\nfoo \n<pre>cba</pre>'); + expect(doc.description). + toBe('<p>foo </p>' + + '<div ng:non-bindable><pre class="brush: js; html-script: true;">abc</pre></div>' + + '<h2>bah</h2>\n\n' + + '<p>foo </p>' + + '<div ng:non-bindable><pre class="brush: js; html-script: true;">cba</pre></div>'); + }); }); |
