From 7328e6298b982b1333da02c06bc07c4f9e8e4a02 Mon Sep 17 00:00:00 2001 From: tntim96 Date: Thu, 25 Oct 2012 06:47:55 +1100 Subject: [PATCH] Formatting --- doc/manual/manual.xml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/doc/manual/manual.xml b/doc/manual/manual.xml index e95ba348..a5e2c8db 100644 --- a/doc/manual/manual.xml +++ b/doc/manual/manual.xml @@ -309,8 +309,7 @@ - -SOURCE-DIRECTORY/ +SOURCE-DIRECTORY/ dir/ index.html script.js @@ -318,8 +317,7 @@ → - -DESTINATION-DIRECTORY/ +DESTINATION-DIRECTORY/ dir/ index.html script.js [instrumented] @@ -344,20 +342,16 @@ - -doc/example/ +doc/example/ index.html - script.js - + script.js → - -doc/instrumented/ +doc/instrumented/ index.html script.js [instrumented] - jscoverage.html - + jscoverage.html @@ -500,8 +494,7 @@ doc/instrumented/ JSCover works by instrumenting the specified JavaScript. A simple example is shown below: alert('Hello World!'); ...becomes... - -//...header code above +//...header code above if (! this._$jscoverage) { this._$jscoverage = {}; } @@ -511,8 +504,7 @@ _$jscoverage['test.js'][1] = 0; } _$jscoverage['test.js'].source = ["alert('Hello World!');"]; _$jscoverage['test.js'][1]++; -alert('Hello World!'); - +alert('Hello World!'); 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.