From ac6e1306ec2126f9c8e67b4a26d8f03001abf73d Mon Sep 17 00:00:00 2001 From: Di Peng Date: Fri, 19 Aug 2011 12:06:59 -0700 Subject: fix(sample): Fix for jsFiddle integration --- docs/spec/ngdocSpec.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/spec') 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(){ '
\n<>\n

after

'); }); + it('should preserve the jsfiddle attribute', function(){ + var doc = new Doc('@description before ' + + 'lala after'); + doc.parse(); + expect(doc.description).toContain('

before

' + + '
lala

after

'); + }); + it('should escape element', function(){ var doc = new Doc('@description before ' + '\n<>\n after'); -- cgit v1.2.3