diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors')
15 files changed, 1075 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/00_test_list.txt b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/00_test_list.txt new file mode 100644 index 000000000..6758bea8e --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/00_test_list.txt @@ -0,0 +1,14 @@ +glsl-construct-vec2.html +glsl-construct-vec3.html +glsl-construct-vec4.html +glsl-construct-ivec2.html +glsl-construct-ivec3.html +glsl-construct-ivec4.html +glsl-construct-bvec2.html +glsl-construct-bvec3.html +glsl-construct-bvec4.html +glsl-construct-mat2.html +glsl-construct-mat3.html +glsl-construct-mat4.html +--min-version 1.0.3 glsl-construct-vec-mat-corner-cases.html +--min-version 1.0.3 glsl-construct-vec-mat-index.html diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec2.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec2.html new file mode 100644 index 000000000..67059791e --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec2.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "bvec2"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec3.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec3.html new file mode 100644 index 000000000..4c5f381c6 --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec3.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "bvec3"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec4.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec4.html new file mode 100644 index 000000000..615f8d8c0 --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-bvec4.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "bvec4"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec2.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec2.html new file mode 100644 index 000000000..0bab45eb8 --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec2.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "ivec2"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec3.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec3.html new file mode 100644 index 000000000..e437c4d6f --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec3.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "ivec3"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec4.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec4.html new file mode 100644 index 000000000..0f430d489 --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-ivec4.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "ivec4"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat2.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat2.html new file mode 100644 index 000000000..9ae4b02f3 --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat2.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "mat2"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat3.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat3.html new file mode 100644 index 000000000..e34b67dda --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat3.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "mat3"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat4.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat4.html new file mode 100644 index 000000000..6af55881a --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-mat4.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "mat4"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec-mat-corner-cases.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec-mat-corner-cases.html new file mode 100644 index 000000000..ed1571ede --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec-mat-corner-cases.html @@ -0,0 +1,218 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> + +<script id="vsVec4Mat2Add" type="text/something-not-javascript"> +void main() +{ + mat2 m1 = mat2(1.0, 2.0, 3.0, 4.0); + mat2 m2 = mat2(0); + vec4 v = vec4(m1 + m2); + gl_Position = v; +} +</script> +<script id="fsVec4Mat3Add" type="text/something-not-javascript"> +precision mediump float; +void main() +{ + mat3 m1 = mat3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0); + mat3 m2 = mat3(0); + vec4 v = vec4(m1 + m2); + gl_FragColor = v; +} +</script> + +<script id="vsMat2Vec4Sub" type="text/something-not-javascript"> +void main() +{ + vec4 v1 = vec4(1.0, 2.0, 3.0, 4.0); + vec4 v2 = vec4(0); + mat2 m = mat2(v1 - v2); + gl_Position = vec4(1.0, m); +} +</script> +<script id="fsMat3Vec4AddSub" type="text/something-not-javascript"> +precision mediump float; +void main() +{ + vec4 v1 = vec4(1.0, 2.0, 3.0, 4.0); + vec4 v2 = vec4(0); + mat3 m = mat3(v1 + v2, 5.0, v1 - v2); + gl_FragColor = vec4(m); +} +</script> + +<script id="vsVec4Mat2Func" type="text/something-not-javascript"> +mat2 f(mat2 a) +{ + return a; +} +void main() +{ + mat2 m = mat2(1.0, 2.0, 3.0, 4.0); + vec4 v = vec4(f(m)); + gl_Position = vec4(1.0, v); +} +</script> +<script id="fsVec4Mat3Func" type="text/something-not-javascript"> +precision mediump float; +mat3 f(mat3 a) +{ + return a; +} +void main() +{ + mat3 m = mat3(0); + vec4 v = vec4(f(m)); + gl_FragColor = v; +} +</script> + +<script id="vsMat2Vec4Func" type="text/something-not-javascript"> +vec4 f(vec4 a) +{ + return a; +} +void main() +{ + vec4 v = vec4(1.0, 2.0, 3.0, 4.0); + mat2 m = mat2(f(v)); + gl_Position = vec4(1.0, m); +} +</script> +<script id="fsMat3Vec4Func" type="text/something-not-javascript"> +precision mediump float; +vec4 f(vec4 a) +{ + return a; +} +void main() +{ + vec4 v1 = vec4(1.0, 2.0, 3.0, 4.0); + vec4 v2 = vec4(0); + mat3 m = mat3(f(v1), 5.0, f(v2)); + gl_FragColor = vec4(m); +} +</script> + +<script id="vsMat4VecMultiple" type="text/something-not-javascript"> +vec4 f(vec4 a) +{ + return a; +} +void main() +{ + vec2 v2 = vec2(1.0, 2.0); + vec3 v3 = vec3(1.0, 2.0, 3.0); + vec4 v4 = vec4(1.0, 2.0, 3.0, 4.0); + mat4 m = mat4(0.0, v2, 1.0, v3 + vec3(1), 2.0, vec4(0), f(v4)); + gl_Position = vec4(1.0, m); +} +</script> +<script id="fsMat4VecMultiple" type="text/something-not-javascript"> +precision mediump float; +vec4 f(vec4 a) +{ + return a; +} +void main() +{ + vec2 v2 = vec2(1.0, 2.0); + vec3 v3 = vec3(1.0, 2.0, 3.0); + vec4 v4 = vec4(1.0, 2.0, 3.0, 4.0); + mat4 m = mat4(0.0, v2, 1.0, v3 + vec3(1), 2.0, vec4(0), f(v4)); + gl_FragColor = vec4(m); +} +</script> + +<script> +"use strict"; +var wtu = WebGLTestUtils; +var tests = []; + +tests.push({ + vShaderSource: wtu.getScript("vsVec4Mat2Add"), + vShaderSuccess: true, + fShaderSource: wtu.getScript("fsVec4Mat3Add"), + fShaderSuccess: true, + linkSuccess: true, + passMsg: "vec(mat +/- mat) works ok", +}); +tests.push({ + vShaderSource: wtu.getScript("vsMat2Vec4Sub"), + vShaderSuccess: true, + fShaderSource: wtu.getScript("fsMat3Vec4AddSub"), + fShaderSuccess: true, + linkSuccess: true, + passMsg: "mat(vec +/- vec) works ok", +}); +tests.push({ + vShaderSource: wtu.getScript("vsVec4Mat2Func"), + vShaderSuccess: true, + fShaderSource: wtu.getScript("fsVec4Mat3Func"), + fShaderSuccess: true, + linkSuccess: true, + passMsg: "vec(func(mat)) works ok", +}); +tests.push({ + vShaderSource: wtu.getScript("vsMat2Vec4Func"), + vShaderSuccess: true, + fShaderSource: wtu.getScript("fsMat3Vec4Func"), + fShaderSuccess: true, + linkSuccess: true, + passMsg: "mat(func(vec)) works ok", +}); +tests.push({ + vShaderSource: wtu.getScript("vsMat4VecMultiple"), + vShaderSuccess: true, + fShaderSource: wtu.getScript("fsMat4VecMultiple"), + fShaderSuccess: true, + linkSuccess: true, + passMsg: "mat4(float, vec2, float, vec3+vec3, float, vec4, f(vec4)) works ok", +}); + +GLSLConformanceTester.runTests(tests); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec-mat-index.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec-mat-index.html new file mode 100644 index 000000000..841878ea5 --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec-mat-index.html @@ -0,0 +1,99 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +</head> +<body> +<canvas id="example" width="50" height="50">xxx</canvas> +<div id="description">Check mat2(index++, vec4(index++)) works as intended</div> +<div id="console"></div> + +<script id="vsDefault" type="text/something-not-javascript"> +attribute vec4 vPosition; +void main() +{ + gl_Position = vPosition; +} +</script> +<script id="fsPlusPlus" type="text/something-not-javascript"> +precision mediump float; +bool equal(mat2 m1, mat2 m2) +{ + float EPSILON = 0.00001; + for (int i = 0; i < 2; i++) { + for (int j = 0; j < 2; j++) { + if (abs(m1[i][j] - m2[i][j]) > EPSILON) + return false; + } + } + return true; +} +void main() +{ + int i = 0; + mat2 m = mat2(i++, vec4(i++)); + if (equal(m, mat2(0, 1, 1, 1))) + gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0); + else + gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); +} +</script> + +<script> +"use strict"; +var wtu = WebGLTestUtils; + +var gl = wtu.create3DContext("example"); +var program = wtu.setupProgram(gl, ["vsDefault", "fsPlusPlus"], ["vPosition"]); + +var vertexObject = gl.createBuffer(); +gl.bindBuffer(gl.ARRAY_BUFFER, vertexObject); +gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([ 0,0.5,0, -0.5,-0.5,0, 0.5,-0.5,0 ]), gl.STATIC_DRAW); +gl.enableVertexAttribArray(0); +gl.vertexAttribPointer(0, 3, gl.FLOAT, false, 0, 0); + +gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); +gl.drawArrays(gl.TRIANGLES, 0, 3); + +wtu.checkCanvasRect(gl, 25, 25, 1, 1, [0, 255, 0, 255]); +wtu.glErrorShouldBe(gl, gl.NO_ERROR, "There should be no error", 1); + +var successfullyParsed = true; +</script> +<script src="../../../resources/js-test-post.js"></script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec2.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec2.html new file mode 100644 index 000000000..d864790bf --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec2.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "vec2"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec3.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec3.html new file mode 100644 index 000000000..b7eafb7dd --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec3.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "vec3"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> diff --git a/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec4.html b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec4.html new file mode 100644 index 000000000..267e0845e --- /dev/null +++ b/testing/web-platform/tests/webgl/conformance-1.0.3/conformance/glsl/constructors/glsl-construct-vec4.html @@ -0,0 +1,62 @@ +<!-- + +/* +** Copyright (c) 2014 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +--> + +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>WebGL GLSL Conformance Tests</title> +<link rel="stylesheet" href="../../../resources/js-test-style.css"/> +<link rel="stylesheet" href="../../resources/glsl-feature-tests.css"/> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src="../../../resources/js-test-pre.js"></script> +<script src="../../resources/webgl-test-utils.js"></script> +<script src="../../resources/glsl-conformance-test.js"></script> +<script src="../../resources/glsl-constructor-tests-generator.js"></script> +</head> +<body> +<div id="description"></div> +<div id="console"></div> +<script> +"use strict"; +var targetType = "vec4"; +description("Test " + targetType + " constructor expressions."); + +var testSet = GLSLConstructorTestsGenerator.getDefaultTestSet(targetType); + +// Generate tests +var testCases = GLSLConstructorTestsGenerator.getConstructorTests(targetType, testSet); + +// Run the tests +GLSLConformanceTester.runTests(testCases); + +debug(""); +var successfullyParsed = true; +</script> +</body> +</html> |