aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/domSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-01-19 12:16:21 -0800
committerMisko Hevery2011-01-24 14:23:51 -0800
commitd8acfe738906c2cb9755f7a872ea7ff22f8cdd51 (patch)
tree3484afac8e7969b3fe506f8baf919720bb5ec89d /docs/spec/domSpec.js
parentb036c0bc58e186e4180df48be923e3c9b96af57d (diff)
downloadangular.js-d8acfe738906c2cb9755f7a872ea7ff22f8cdd51.tar.bz2
add @this and @exampleDescription tags
(also removed markdownNoP, now done through CSS)
Diffstat (limited to 'docs/spec/domSpec.js')
-rw-r--r--docs/spec/domSpec.js15
1 files changed, 13 insertions, 2 deletions
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('<h1>Example</h1>\ndesc<doc:example><doc:source>src</doc:source>\n<doc:scenario>scenario</doc:scenario>\n</doc:example>\n');
+ expect(dom.toString()).toEqual(
+ '<h1>Example</h1>\n' +
+ '<div class="example">' +
+ 'desc<doc:example><doc:source>src</doc:source>\n' +
+ '<doc:scenario>scenario</doc:scenario>\n'+
+ '</doc:example>\n' +
+ '</div>\n');
});
it('should render non-live, test with description', function(){
var dom = new DOM();
dom.example('desc', 'src', false);
- expect(dom.toString()).toEqual('<h1>Example</h1>\ndesc<div ng:non-bindable=""><pre class="brush: js; html-script: true;">src</pre>\n</div>\n');
+ expect(dom.toString()).toEqual('<h1>Example</h1>\n' +
+ '<div class="example">' +
+ 'desc<div ng:non-bindable="">' +
+ '<pre class="brush: js; html-script: true;">src</pre>\n' +
+ '</div>\n' +
+ '</div>\n');
});
it('should render non-live, test', function(){