diff options
| author | Di Peng | 2011-08-19 12:06:59 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-19 13:29:26 -0700 |
| commit | ac6e1306ec2126f9c8e67b4a26d8f03001abf73d (patch) | |
| tree | ce76b6bda2e7ce8b6eeb8b67dc26b54a2ff40622 /docs/spec | |
| parent | e004378d100ce767a1107180102790a9a360644e (diff) | |
| download | angular.js-ac6e1306ec2126f9c8e67b4a26d8f03001abf73d.tar.bz2 | |
fix(sample): Fix for jsFiddle integration
Diffstat (limited to 'docs/spec')
| -rw-r--r-- | docs/spec/ngdocSpec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index a184c5df..f16bef46 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -89,6 +89,14 @@ describe('ngdoc', function(){ '<pre class="doc-source">\n<>\n</pre></doc:example><p>after</p>'); }); + it('should preserve the jsfiddle attribute', function(){ + var doc = new Doc('@description before <doc:example>' + + '<doc:source jsfiddle="foo">lala</doc:source></doc:example> after'); + doc.parse(); + expect(doc.description).toContain('<p>before </p><doc:example>' + + '<pre class="doc-source" jsfiddle="foo">lala</pre></doc:example><p>after</p>'); + }); + it('should escape <doc:scenario> element', function(){ var doc = new Doc('@description before <doc:example>' + '<doc:scenario>\n<>\n</doc:scenario></doc:example> after'); |
