/[jscoverage]/trunk/doc/manual.html
ViewVC logotype

Diff of /trunk/doc/manual.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 474 by siliconforks, Sun Oct 4 05:35:23 2009 UTC revision 497 by siliconforks, Sun Dec 27 18:30:02 2009 UTC
# Line 194  Line 194 
194    
195  <p>  <p>
196  The "Browser" tab contains an <code>&lt;iframe&gt;</code>, which is initially empty.  The "Browser" tab contains an <code>&lt;iframe&gt;</code>, which is initially empty.
197  You can load a page into this frame by  You can load a URL into this frame by entering it into the "URL" input field and clicking the "Open in frame" button.
 entering its URL into the "URL" input field.  
198  You can load any page located in <code><var>DESTINATION-DIRECTORY</var>/</code>  You can load any page located in <code><var>DESTINATION-DIRECTORY</var>/</code>
199  or a subdirectory underneath <code><var>DESTINATION-DIRECTORY</var>/</code>; loading a page  or a subdirectory underneath <code><var>DESTINATION-DIRECTORY</var>/</code>; loading a page
200  from outside <code><var>DESTINATION-DIRECTORY</var>/</code>, or from a foreign web  from outside <code><var>DESTINATION-DIRECTORY</var>/</code>, or from a foreign web
# Line 254  Line 253 
253  Reloading <code>jscoverage.html</code> resets all code coverage statistics to zero.  Reloading <code>jscoverage.html</code> resets all code coverage statistics to zero.
254  </p>  </p>
255    
256  <h2>Inverted mode</h2>  <h2>Window mode</h2>
257    
258  <p>  <p>
259  In some situations it may be difficult to execute your code within the  In some situations it may be difficult to execute your code within the <code>&lt;iframe&gt;</code> in the
260  JSCoverage "Browser" tab. For example, the code may assume that it is running in  JSCoverage "Browser" tab. For example, the code may assume that it is running in
261  the top-level browser window, generating errors if it is executed from within a  the top-level browser window, generating errors if it is executed from within a
262  frame. JSCoverage has an alternative mode of operation, called <dfn>inverted  frame.  JSCoverage has an alternative mode of operation, called <dfn>window
263  mode</dfn>, which may be useful in this case.  mode</dfn>, which may be useful in this case.
264  </p>  </p>
265    
266  <p>  <p>
267    To use JSCoverage in window mode, load your URL by clicking the "Open in window"
268    button instead of the "Open in frame" button. This will cause your URL to be
269    opened in a new window. (Depending on your browser settings, it may be opened in
270    a new browser tab instead.)  Execute your code in this new window, and
271    then return to the <code>jscoverage.html</code> window and click the "Summary"
272    tab to get code coverage statistics.
273    </p>
274    
275    <h2>Inverted mode</h2>
276    
277    <p>
278    There is another alternative mode of operation, called <dfn>inverted
279    mode</dfn>.  Like window mode, this allows you to avoid running your code inside an <code>&lt;iframe&gt;</code>.
280    </p>
281    
282    <p>
283  Normally you load <code>jscoverage.html</code> in your web browser, and in its  Normally you load <code>jscoverage.html</code> in your web browser, and in its
284  "Browser" tab you launch your test code. In inverted mode, you do the  "Browser" tab you launch your test code. In inverted mode, you do the
285  opposite: you load your test page directly in your web browser, and from there  opposite: you load your test page directly in your web browser, and from there
# Line 369  Line 384 
384  When accessing <code>jscoverage.html</code> in a web browser, you may provide a  When accessing <code>jscoverage.html</code> in a web browser, you may provide a
385  query string consisting of options separated by ampersand (<code>&amp;</code>)  query string consisting of options separated by ampersand (<code>&amp;</code>)
386  or semicolon (<code>;</code>). Any option not containing an equals sign  or semicolon (<code>;</code>). Any option not containing an equals sign
387  (<code>=</code>) is considered to be a URL which will be loaded in the "Browser"  (<code>=</code>) is considered to be a URL which will be loaded in the
388  tab.  <code>&lt;iframe&gt;</code> within the "Browser" tab.
389  </p>  </p>
390    
391  <dl>  <dl>
392  <dt><code>u=<var>URL</var></code>, <code>url=<var>URL</var></code>  <dt><code>u=<var>URL</var></code>, <code>url=<var>URL</var></code>, <code>frame=<var>URL</var></code>, <code>f=<var>URL</var></code>
393  <dd>Load <var>URL</var> in the "Browser" tab.  (This is the same as specifying  <dd>Load <var>URL</var> in the <code>&lt;iframe&gt;</code> within the "Browser" tab.  (This is the same as specifying
394  an option without an equals sign.)  an option without an equals sign.)
395    <dt><code>w=<var>URL</var></code>, <code>window=<var>URL</var></code>
396    <dd>Load <var>URL</var> in a new window (window mode).
397  <dt><code>m=<var>BOOLEAN</var></code>, <code>missing=<var>BOOLEAN</var></code>  <dt><code>m=<var>BOOLEAN</var></code>, <code>missing=<var>BOOLEAN</var></code>
398  <dd>Determines whether to initially display the "Missing" column in the "Summary"  <dd>Determines whether to initially display the "Missing" column in the "Summary"
399  tab.  <var>BOOLEAN</var> can be  tab.  <var>BOOLEAN</var> can be

Legend:
Removed from v.474  
changed lines
  Added in v.497

  ViewVC Help
Powered by ViewVC 1.1.24