3 <script src=
"resources/webgl-test.js"></script>
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 testRunner
.waitUntilDone();
14 if (window
.GCController
)
15 return GCController
.collect();
17 for (var i
= 0; i
< 10000; ++i
)
18 var s
= new String("AAAA");
21 window
.onload = function()
23 canvas
= document
.createElement("canvas");
24 context
= create3DContext(canvas
);
25 extension
= context
.getExtension("WEBGL_lose_context");
31 setTimeout(finishTest
, 1);
36 extension
.loseContext();
38 document
.body
.innerHTML
= "PASS";
39 if (window
.testRunner
)
40 testRunner
.notifyDone();