diff options
| author | Di Peng | 2011-08-19 12:06:59 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-08-19 15:27:21 -0700 | 
| commit | 774db0aecb85f9ae79895046b62ea4c45bad8bff (patch) | |
| tree | 21f74df17b91a3b8998bec350f6d24b1ccd296b1 /docs/spec | |
| parent | dc0b0c77c7ba3e419442ec639356ab5d3ba7efbe (diff) | |
| download | angular.js-774db0aecb85f9ae79895046b62ea4c45bad8bff.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');  | 
