Unregister from GCM when the only GCM app is removed
[chromium-blink-merge.git] / chrome / test / data / dromaeo / tests / sunspider-3d-morph.html
blob8bdacaae58b878bf4b6f806eb197382eaf3f65d9
1 <html>
2 <head>
3 <script src="../htmlrunner.js"></script>
4 <script>
5 // Test from here:
6 // http://webkit.org/misc/morph.html
8 window.onload = function(){ startTest("sunspider-3d-morph", '62915fe1');
10 var loops = 15, nx, nz, a;
11 var size = 120;
13 function morph(a,f) {
14 var PI2nx = Math.PI * 8/nx;
15 var sin = Math.sin;
16 var f30 = -(50 * sin(f*Math.PI*2));
18 for (var i = 0; i < nz; ++i) {
19 for (var j = 0; j < nx; ++j) {
20 a[3*(i*nx+j)+1] = sin((j-1) * PI2nx ) * -f30
26 prep(function(){
27 nz = nx = size / 3;
28 });
30 test("Mesh Transform", function(){
31 a = Array();
32 for (var i=0; i < nx*nz*3; ++i)
33 a[i] = 0;
35 for (var i = 0; i < loops; ++i) {
36 morph(a, i/loops)
38 });
40 endTest(); };
41 </script>
42 </head>
43 <body></body>
44 </html>