blob: 7a616e776dcfc19052e2d6de3912981c5e6cd665 [file] [log] [blame]
<html>
<head>
<script src="resources/webgl-test.js"></script>
</head>
<body>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function gc()
{
if (window.GCController)
return GCController.collect();
for (var i = 0; i < 10000; ++i)
var s = new String("AAAA");
}
window.onload = function()
{
canvas = document.createElement("canvas");
context = create3DContext(canvas);
extension = context.getExtension("WEBKIT_WEBGL_lose_context");
canvas = null;
context = null;
gc();
setTimeout(finishTest, 1);
}
function finishTest()
{
extension.loseContext();
document.body.innerHTML = "PASS";
if (window.layoutTestController)
layoutTestController.notifyDone();
}
</script>
</body>
</html>