Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tntim96 committed Oct 24, 2012
1 parent bfd4efd commit 7328e62
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions doc/manual/manual.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,15 @@
<tbody>
<tr>
<td>
<code>
<var>SOURCE-DIRECTORY</var>/
<code><var>SOURCE-DIRECTORY</var>/
dir/
index.html
script.js
</code>
</td>
<td class="arrow">&#8594;</td>
<td>
<code>
<var>DESTINATION-DIRECTORY</var>/
<code><var>DESTINATION-DIRECTORY</var>/
dir/
index.html
script.js [instrumented]
Expand All @@ -344,20 +342,16 @@
<tbody>
<tr>
<td>
<code>
doc/example/
<code>doc/example/
index.html
script.js
</code>
script.js</code>
</td>
<td class="arrow">&#8594;</td>
<td>
<code>
doc/instrumented/
<code>doc/instrumented/
index.html
script.js [instrumented]
jscoverage.html
</code>
jscoverage.html</code>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -500,8 +494,7 @@ doc/instrumented/
JSCover works by instrumenting the specified JavaScript. A simple example is shown below:
<code>alert('Hello World!');</code>
...becomes...
<code>
//...header code above
<code>//...header code above
if (! this._$jscoverage) {
this._$jscoverage = {};
}
Expand All @@ -511,8 +504,7 @@ _$jscoverage['test.js'][1] = 0;
}
_$jscoverage['test.js'].source = ["alert('Hello World!');"];
_$jscoverage['test.js'][1]++;
alert('Hello World!');
</code>
alert('Hello World!');</code>
This illustrates that when the target code is executed, a counter for the file name and line
is incremented. The header code manages the declaration of _$jscoverage.
</text>
Expand Down

0 comments on commit 7328e62

Please sign in to comment.