2 Copyright (c) 2019 The Khronos Group Inc.
3 Use of this source code is governed by an MIT-style license that can be
4 found in the LICENSE.txt file.
10 <meta charset=
"utf-8">
11 <title>WebGL PreserveDrawingBuffer Leak Test
</title>
12 <link rel=
"stylesheet" href=
"../../resources/js-test-style.css"/>
13 <script src=
"../../js/js-test-pre.js"></script>
14 <script src=
"../../js/webgl-test-utils.js"> </script>
15 <script src=
"../../js/tests/iterable-test.js"> </script>
18 <canvas id=
"example" width=
"4096" height=
"4096" style=
"width: 128px; height: 128px;"></canvas>
19 <div id=
"description"></div>
20 <div id=
"console"></div>
24 enableJSTestPreVerboseLogging();
25 description(document
.title
);
26 debug('Regression test for <a href="https://code.google.com/p/chromium/issues/detail?id=682482">Chromium bug 682482</a>');
28 var wtu
= WebGLTestUtils
;
30 var gl
= wtu
.create3DContext("example", {preserveDrawingBuffer
: true});
32 testFailed("context does not exist");
35 var test
= IterableTest
.createPreserveDrawingBufferLeakTest(gl
);
36 var iterations
= parseInt(wtu
.getUrlOptions().iterations
, 10) || 50;
37 IterableTest
.run(test
, iterations
);
40 var successfullyParsed
= true;