aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/ngdocSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-04-29 14:43:43 -0700
committerIgor Minar2011-06-06 22:28:37 -0700
commitb6bc6c2ddf1ae1523ec7e4cb92db209cd6501181 (patch)
tree7c3415a03732bdfc3ac630143936b2d31df91c82 /docs/spec/ngdocSpec.js
parentea6b87c24ba70d2554c0f9a3e80b245dc3780234 (diff)
downloadangular.js-b6bc6c2ddf1ae1523ec7e4cb92db209cd6501181.tar.bz2
fix syntax highlighting on the javascript
Diffstat (limited to 'docs/spec/ngdocSpec.js')
-rw-r--r--docs/spec/ngdocSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index 46b05aef..68d3700f 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -307,10 +307,10 @@ describe('ngdoc', function(){
describe('@description', function(){
it('should support pre blocks', function(){
- var doc = new Doc("@description <pre>abc</pre>");
+ var doc = new Doc("@description <pre><b>abc</b></pre>");
doc.parse();
expect(doc.description).
- toBe('<div ng:non-bindable><pre class="brush: js; html-script: true;">abc</pre></div>');
+ toBe('<div ng:non-bindable><pre class="brush: js; html-script: true;">&lt;b&gt;abc&lt;/b&gt;</pre></div>');
});
it('should support multiple pre blocks', function() {
@@ -318,10 +318,10 @@ describe('ngdoc', function(){
doc.parse();
expect(doc.description).
toBe('<p>foo </p>' +
- '<div ng:non-bindable><pre class="brush: js; html-script: true;">abc</pre></div>' +
+ '<div ng:non-bindable><pre class="brush: js;">abc</pre></div>' +
'<h1>bah</h1>\n\n' +
'<p>foo </p>' +
- '<div ng:non-bindable><pre class="brush: js; html-script: true;">cba</pre></div>');
+ '<div ng:non-bindable><pre class="brush: js;">cba</pre></div>');
});