34 |
same <strong>directory</strong> as the <code>jscoverage.html</code> file.) |
same <strong>directory</strong> as the <code>jscoverage.html</code> file.) |
35 |
</p> |
</p> |
36 |
|
|
37 |
|
<h3>Why doesn't my test suite run under JSCoverage in Firefox 3?</h3> |
38 |
|
|
39 |
|
<p> |
40 |
|
Beta versions of Firefox 3 introduced <a |
41 |
|
href="http://tech.groups.yahoo.com/group/jsunit/message/1075">new |
42 |
|
security restrictions</a> on local files. Depending on the way your |
43 |
|
test suite is organized, this may cause problems for JSCoverage. |
44 |
|
(You may get the error "uncaught exception: Permission denied to get property Window._$jscoverage".) |
45 |
|
These restrictions are not present in the final release of Firefox 3. |
46 |
|
</p> |
47 |
|
|
48 |
<h3>I'm trying to load my code with the URL |
<h3>I'm trying to load my code with the URL |
49 |
<code>file:///C:/foo/bar/jscoverage.html?foo/bar.html</code> |
<code>file:///C:/foo/bar/jscoverage.html?foo/bar.html</code> |
50 |
and I'm getting all kinds of JavaScript errors.</h3> |
and I'm getting all kinds of JavaScript errors.</h3> |
57 |
As a workaround: |
As a workaround: |
58 |
</p> |
</p> |
59 |
<ul class="list"> |
<ul class="list"> |
60 |
<li>Place your files on a web server instead of loading them from the file system. |
<li><p>Place your files on a web server instead of loading them from the file system. |
61 |
(<code>http:</code> URLs work fine.) |
(<code>http:</code> URLs work fine.)</p> |
62 |
<li>Do not use a query string; enter your URL in the "URL" field in the "Browser" tab. |
<li><p>Do not use a query string; enter your URL in the "URL" field in the "Browser" tab.</p> |
63 |
<li>Rearrange your directory structure so that <code>bar.html</code> |
<li><p>Rearrange your directory structure so that <code>bar.html</code> |
64 |
ends up in the same directory as <code>jscoverage.html</code>; then |
ends up in the same directory as <code>jscoverage.html</code>; then |
65 |
you can use the URL |
you can use the URL |
66 |
<code>file:///C:/foo/bar/jscoverage.html?bar.html</code> |
<code>file:///C:/foo/bar/jscoverage.html?bar.html</code> |
67 |
with no slash in the query string. |
with no slash in the query string.</p> |
68 |
<li>Use a different browser. (IE 7 seems to work.) |
<li><p>Use a different browser. (IE 7 seems to work.)</p> |
69 |
</ul> |
</ul> |
70 |
|
|
71 |
<h3>JSCoverage changes my cursor to a busy cursor, and it never changes back!</h3> |
<h3>JSCoverage changes my cursor to a busy cursor, and it never changes back!</h3> |
138 |
</div> |
</div> |
139 |
<div id="ft"> |
<div id="ft"> |
140 |
<address> |
<address> |
141 |
Copyright © 2007 siliconforks.com<br> |
Copyright © 2007, 2008 <a href="http://siliconforks.com/"><img src="http://siliconforks.com/siliconforks-16x16.png" width="16" height="16" class="icon" alt="Silicon Forks"></a> <a href="http://siliconforks.com/">siliconforks.com</a><br> |
142 |
Last updated November 22, 2007<br> |
Last updated June 18, 2008<br> |
143 |
<a href="mailto:jscoverage@siliconforks.com">jscoverage@siliconforks.com</a> |
<a href="mailto:jscoverage@siliconforks.com">jscoverage@siliconforks.com</a> |
144 |
</address> |
</address> |
145 |
</div> |
</div> |