From d8acfe738906c2cb9755f7a872ea7ff22f8cdd51 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 19 Jan 2011 12:16:21 -0800 Subject: add @this and @exampleDescription tags (also removed markdownNoP, now done through CSS) --- docs/spec/domSpec.js | 15 +++++++++++++-- docs/spec/ngdocSpec.js | 7 ++++++- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'docs/spec') diff --git a/docs/spec/domSpec.js b/docs/spec/domSpec.js index af1a8faa..58063789 100644 --- a/docs/spec/domSpec.js +++ b/docs/spec/domSpec.js @@ -5,13 +5,24 @@ describe('dom', function(){ it('should render code, live, test', function(){ var dom = new DOM(); dom.example('desc', 'src', 'scenario'); - expect(dom.toString()).toEqual('

Example

\ndescsrc\nscenario\n\n'); + expect(dom.toString()).toEqual( + '

Example

\n' + + '
' + + 'descsrc\n' + + 'scenario\n'+ + '\n' + + '
\n'); }); it('should render non-live, test with description', function(){ var dom = new DOM(); dom.example('desc', 'src', false); - expect(dom.toString()).toEqual('

Example

\ndesc
src
\n
\n'); + expect(dom.toString()).toEqual('

Example

\n' + + '
' + + 'desc
' + + '
src
\n' + + '
\n' + + '
\n'); }); it('should render non-live, test', function(){ diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index 2bea6e9a..8f57e329 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -304,7 +304,12 @@ describe('ngdoc', function(){ var doc = new Doc('@this I am self.'); doc.ngdoc = 'filter'; doc.parse(); - expect(doc.html()).toContain('

Method\'s this

\n

I am self.

'); + expect(doc.html()).toContain('

Method\'s this

\n' + + '
' + + '

I am self.

' + + '
\n'); + expect(doc.html()).toContain('

Method\'s this

\n' + + '

I am self.

'); }); }); }); -- cgit v1.2.3