--- trunk/doc/faq.html 2007/08/22 18:46:11 41 +++ trunk/doc/faq.html 2007/11/22 01:05:55 66 @@ -13,6 +13,27 @@

FAQ

+

Can I use JSCoverage to measure code coverage for a page on http://example.com/?

+ +

+ In order to measure the code coverage of a page on http://example.com/, + you must run jscoverage to create a jscoverage.html file on the + example.com server. You cannot use http://example.org/jscoverage.html + to measure the code coverage of a page located on http://example.com/. +

+ +

+ The fundamental reason for this limitation is the + Same Origin Policy + for untrusted JavaScript. +

+ +

+ (In fact, the current version of JSCoverage is slightly more restrictive + than this: it requires that the JavaScript being measured reside under the + same directory as the jscoverage.html file.) +

+

I'm trying to load my code with the URL file:///C:/foo/bar/jscoverage.html?foo/bar.html and I'm getting all kinds of JavaScript errors.

@@ -80,7 +101,7 @@

-http://127.0.0.1/jsunit/testRunner.html?testPage=http://127.0.0.1/test.html&autorun=true
+http://127.0.0.1/jsunit/testRunner.html?testPage=http://127.0.0.1/test.html&autoRun=true
 

@@ -107,7 +128,7 @@

Copyright © 2007 siliconforks.com
- Last updated August 15, 2007
+ Last updated August 26, 2007
jscoverage@siliconforks.com