到目前为止,这是我尝试过的,我正在使用Firefox 3.07
请确保在“关于:配置”属性browser.cache.check_doc_frequency中将属性security.fileuri.strict_origin_policy设置为1,浏览器将其解释为“每次检查新页面”。在about:config中,请确保将打开浏览器的属性security.fileuri.strict_origin_policy设置为false.
E 221参数测试要运行的testrunner.html页,即: file:///.../testRunner.html?testpage=c:/temp/someTest.html
上面的所有内容似乎都正常,只是出于一些愚蠢的原因,它仍然在缓存我的*.js文件。我真的认为这可能与在结束时更改随机参数来关闭缓存有关,但这似乎并没有起作用。为了让JSUnit与火狐3.07一起工作,还能做些什么呢?这些文件位于我的硬盘上。
发布于 2009-03-09 21:02:52
到目前为止,这是我尝试过的,我正在使用Firefox 3.07
1.
Make sure in about:config that the property browser.cache.check_doc_frequency is set to 1 which the browser interprets as "check for a new page every time".2.
Make sure in about:config that the property security.fileuri.strict_origin_policy is set to false.3.
When opening your browser be sure to specify to the testrunner.html page which test you want to run using the testpage parameter,
I.E.: file:///.../testRunner.html?testpage=c:/temp/someTest.html4.
Tak an additional random parameter on the end to ensure that the cache is gone.上面的所有内容似乎都正常,只是出于一些愚蠢的原因,它仍然在缓存我的*.js文件。我真的认为这可能与在结束时更改随机参数来关闭缓存有关,但这似乎并没有起作用。为了让JSUnit与火狐3.07一起工作,还能做些什么呢?这些文件位于我的硬盘上。
发布于 2009-03-06 16:33:29
你试过不使用缓存就刷新CTRL + SHIFT +R吗?
发布于 2009-03-08 02:50:52
不,那不管用。问题在于它正在缓存*.js文件。当您执行CTRL + SHIFT +R时,它只是刷新测试运行程序页面。
https://stackoverflow.com/questions/619170
复制相似问题