diff options
Diffstat (limited to 'dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate')
9 files changed, 345 insertions, 0 deletions
diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/00_test_list.txt b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/00_test_list.txt new file mode 100644 index 0000000000..189ebc1d17 --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/00_test_list.txt @@ -0,0 +1,7 @@ +default.html +whole.html +sub.html +format_00.html +format_01.html +format_02.html +target.html
\ No newline at end of file diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/default.html b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/default.html new file mode 100644 index 0000000000..ea07a5f6db --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/default.html @@ -0,0 +1,32 @@ +<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [0, 1]); +</script> +</body> +</html> diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/fboinvalidate_test_generator.py b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/fboinvalidate_test_generator.py new file mode 100644 index 0000000000..ddb7efa091 --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/fboinvalidate_test_generator.py @@ -0,0 +1,114 @@ +#!/usr/bin/env python + +# Copyright (c) 2019 The Khronos Group Inc. +# Use of this source code is governed by an MIT-style license that can be +# found in the LICENSE.txt file. + +""" + Generator for fboinvalidate* tests. + This file needs to be run in its folder. +""" + +import sys + +_DO_NOT_EDIT_WARNING = """<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +""" + +_HTML_TEMPLATE = """<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [%(start)s, %(end)s]); +</script> +</body> +</html> +""" + +_GROUPS = [ + 'default', + 'whole', + 'sub', + 'format', + 'target', +] + +_GROUP_TEST_COUNTS = [ + 1, + 1, + 1, + 3, + 1 +] + +def GenerateFilename(group, count, index): + """Generate test filename.""" + filename = group + assert index >= 0 and index < count + if count > 1: + index_str = str(index) + if index < 10: + index_str = "0" + index_str + filename += "_" + index_str + filename += ".html" + return filename + +def WriteTest(filename, start, end): + """Write one test.""" + file = open(filename, "wb") + file.write(_DO_NOT_EDIT_WARNING) + file.write(_HTML_TEMPLATE % { + 'start': start, + 'end': end + }) + file.close + +def GenerateTests(): + """Generate all tests.""" + assert len(_GROUPS) == len(_GROUP_TEST_COUNTS) + test_index = 0 + filelist = [] + for ii in range(len(_GROUPS)): + group = _GROUPS[ii] + count = _GROUP_TEST_COUNTS[ii] + for index in range(count): + filename = GenerateFilename(group, count, index) + filelist.append(filename) + WriteTest(filename, test_index, test_index + 1) + test_index += 1 + return filelist + +def GenerateTestList(filelist): + file = open("00_test_list.txt", "wb") + file.write('\n'.join(filelist)) + file.close + +def main(argv): + """This is the main function.""" + filelist = GenerateTests() + GenerateTestList(filelist) + +if __name__ == '__main__': + sys.exit(main(sys.argv[1:])) diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_00.html b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_00.html new file mode 100644 index 0000000000..50a4fad63d --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_00.html @@ -0,0 +1,32 @@ +<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [3, 4]); +</script> +</body> +</html> diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_01.html b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_01.html new file mode 100644 index 0000000000..2a130faadb --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_01.html @@ -0,0 +1,32 @@ +<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [4, 5]); +</script> +</body> +</html> diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_02.html b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_02.html new file mode 100644 index 0000000000..7aecfbf1a5 --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/format_02.html @@ -0,0 +1,32 @@ +<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [5, 6]); +</script> +</body> +</html> diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/sub.html b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/sub.html new file mode 100644 index 0000000000..0a883c0c44 --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/sub.html @@ -0,0 +1,32 @@ +<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [2, 3]); +</script> +</body> +</html> diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/target.html b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/target.html new file mode 100644 index 0000000000..e36c335d4f --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/target.html @@ -0,0 +1,32 @@ +<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [6, 7]); +</script> +</body> +</html> diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/whole.html b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/whole.html new file mode 100644 index 0000000000..2792fa7652 --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/fboinvalidate/whole.html @@ -0,0 +1,32 @@ +<!-- + +This file is auto-generated from fboinvalidate_test_generator.py +DO NOT EDIT! + +--> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>WebGL FBO Invalidate Conformance Tests</title> +<link rel="stylesheet" href="../../../../resources/js-test-style.css"/> +<script src="../../../../js/js-test-pre.js"></script> +<script src="../../../../js/webgl-test-utils.js"></script> + +<script src="../../../../closure-library/closure/goog/base.js"></script> +<script src="../../../deqp-deps.js"></script> +<script>goog.require('functional.gles3.es3fFboInvalidateTests');</script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<canvas id="canvas" width="128" height="128"> </canvas> +<script> +var wtu = WebGLTestUtils; +var gl = wtu.create3DContext('canvas', {stencil: true}, 2); +var extention = gl.getExtension('EXT_color_buffer_float'); + +functional.gles3.es3fFboInvalidateTests.run(gl, [1, 2]); +</script> +</body> +</html> |