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

Annotation of /trunk/doc/faq.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (hide annotations)
Fri Aug 24 16:27:54 2007 UTC (12 years, 2 months ago) by siliconforks
File MIME type: text/html
File size: 4563 byte(s)
Change autorun to autoRun.

1 siliconforks 29 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2     <html>
3     <head>
4     <title>JSCoverage - help</title>
5     <link rel="stylesheet" type="text/css" href="reset-fonts-grids.css">
6     <link rel="stylesheet" type="text/css" href="style.css">
7     </head>
8     <body>
9     <div id="doc3" class="yui-t5">
10     <div id="hd"><h1><a href="./">JSCoverage</a><br><span class="tag">code coverage for JavaScript</span></h1></div>
11     <div id="bd">
12     <div id="yui-main">
13     <div id="jscoverage-main" class="yui-b">
14     <h2><abbr title="Frequently Asked Questions">FAQ</abbr></h2>
15    
16     <h3>I'm trying to load my code with the URL
17     <code>file:///C:/foo/bar/jscoverage.html?foo/bar.html</code>
18     and I'm getting all kinds of JavaScript errors.</h3>
19    
20     <p>
21     Internet Explorer 6 seems to have problems with a <code>file:</code> URL
22     that has a query string with a slash in it.
23     </p>
24     <p>
25     As a workaround:
26     </p>
27     <ul class="list">
28     <li>Place your files on a web server instead of loading them from the file system.
29     (<code>http:</code> URLs work fine.)
30     <li>Do not use a query string; enter your URL in the "URL" field in the "Browser" tab.
31     <li>Rearrange your directory structure so that <code>bar.html</code>
32     ends up in the same directory as <code>jscoverage.html</code>; then
33     you can use the URL
34     <code>file:///C:/foo/bar/jscoverage.html?bar.html</code>
35     with no slash in the query string.
36     <li>Use a different browser. (IE 7 seems to work.)
37     </ul>
38    
39     <h3>JSCoverage changes my cursor to a busy cursor, and it never changes back!</h3>
40    
41     <p>
42     Certain browsers (<i>e. g</i>., Internet Explorer 6, Opera, Safari) have trouble changing
43     the cursor. Try moving the mouse and your cursor should change back to normal.
44     </p>
45    
46     <p>
47 siliconforks 41 See <a href="http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/631908bd63241136/783c307480f95d8c">this discussion</a> for more information.
48 siliconforks 29 </p>
49    
50     <h3>JSCoverage hangs sometimes when rendering the coverage report.</h3>
51    
52     <p>
53     With Internet Explorer 6 (I think I see a pattern here), garbage collection can cause performance problems.
54     (More information <a href="http://ajaxian.com/archives/garbage-collection-in-ie6">here</a>.)
55     </p>
56    
57 siliconforks 41 <h3>Can JSCoverage be used with <a href="http://www.jsunit.net/">JsUnit</a>?</h3>
58    
59     <p>
60     It is necessary to run JSCoverage in <dfn>inverted mode</dfn>. You will have to
61     modify JsUnit to launch JSCoverage.
62     </p>
63    
64     <p>
65     See the directory <code>doc/example-jsunit</code> for an example. It
66     contains a copy of JsUnit version 2.2alpha11, with the file
67     <code>jsunit/app/main-data.html</code> slightly modified to add a button
68     which launches JSCoverage. It also contains a simple unit test file <code>test.html</code>. You
69     can instrument this example as follows:
70     </p>
71    
72     <pre>
73     jscoverage --no-instrument=jsunit doc/example-jsunit doc/instrumented-jsunit
74     </pre>
75    
76     <p>
77     You can then run the <code>test.html</code> file in JsUnit's <code>jsunit/testRunner.html</code>.
78     The simplest way to do this is probably to copy the contents of <code>doc/instrumented-jsunit</code>
79     to the root of a web server and then access the URL
80     </p>
81    
82     <pre>
83 siliconforks 55 http://127.0.0.1/jsunit/testRunner.html?testPage=http://127.0.0.1/test.html&amp;autoRun=true
84 siliconforks 41 </pre>
85    
86     <p>
87     After the test suite has been run, click on the "Coverage report" button
88     to get a coverage report.
89     </p>
90    
91 siliconforks 29 </div>
92     </div>
93     <div id="jscoverage-sidebar" class="yui-b">
94     <ul>
95     <li><a href="./">Home</a>
96     <li><a href="news.html">News</a> <a href="http://siliconforks.com/jscoverage/news.xml" type="application/rss+xml" title="RSS feed for JSCoverage"><img src="feed-icon-14x14.png" alt="RSS feed"></a>
97     <li><a href="manual.html">Documentation</a>
98     <li><a href="demo.html">Demo</a>
99     <li><a href="download.html">Download</a>
100     <li>FAQ
101     <li><a href="help.html">Help</a>
102     <li><a href="license.html">License</a>
103     <li><a href="links.html">Links</a>
104     </ul>
105     </div>
106     </div>
107     <div id="ft">
108     <address>
109     Copyright &copy; 2007 siliconforks.com<br>
110 siliconforks 43 Last updated August 26, 2007<br>
111 siliconforks 29 <a href="mailto:jscoverage@siliconforks.com">jscoverage@siliconforks.com</a>
112     </address>
113     </div>
114     </div>
115     </body>
116     </html>

  ViewVC Help
Powered by ViewVC 1.1.24