1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/asm.js/testBullet.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +// Test a big fat asm.js module. First load/compile/cache bullet.js in a 1.5 +// separate process and then load it again in this process, which should be a 1.6 +// cache hit. 1.7 + 1.8 +setCachingEnabled(true); 1.9 +if (!isAsmJSCompilationAvailable()) 1.10 + quit(); 1.11 + 1.12 +// Note: if you get some failure in this test, it probably has to do with 1.13 +// bullet.js and not the nestedShell() call, so try first commenting out 1.14 +// nestedShell() (and the loadedFromCache assertion) to see if the error 1.15 +// reproduces. 1.16 +var code = "setIonCheckGraphCoherency(false); setCachingEnabled(true); load('" + libdir + "bullet.js'); runBullet()"; 1.17 +nestedShell("--js-cache", "--execute=" + code); 1.18 +setIonCheckGraphCoherency(false); 1.19 +load(libdir + 'bullet.js'); 1.20 +var results = runBullet(); 1.21 +assertEq(results.asmJSValidated, true); 1.22 +assertEq(results.loadedFromCache, true);