Move all getUniformX tests to web_ui/test.#180910
Conversation
…hub. Update impellerc generated strings
There was a problem hiding this comment.
Code Review
This pull request refactors the testing for shader uniforms by moving existing web tests for getUniformX to web_ui/tests. It also improves maintainability by committing the raw shader source files (.frag) to the repository and updating the generated string representations in the Dart test files. My feedback includes a suggestion to update a comment to ensure all dependent test files are listed for a shader, and a refactoring suggestion for the new tests to group related tests and reduce code duplication.
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| // If updating this file, also update engine/src/flutter/lib/web_ui/test/canvaskit/fragment_program_test.dart |
There was a problem hiding this comment.
This comment is helpful, but it's missing a reference to engine/src/flutter/lib/web_ui/test/ui/fragment_shader_test.dart, which also uses the generated output from this shader. To ensure all dependent files are updated when this shader changes, it's best to list all of them, similar to how it's done in many_arrays.frag.
// If updating this file, also update engine/src/flutter/lib/web_ui/test/canvaskit/fragment_program_test.dart
// and engine/src/flutter/lib/web_ui/test/ui/fragment_shader_test.dart
gaaclarke
left a comment
There was a problem hiding this comment.
LGTM, this is an improvement. It's nice having the version numbers in there to help people if the checked in compiled shaders get stale.
|
autosubmit label was removed for flutter/flutter/180910, because - The status or check suite Linux web_skwasm_tests_1 has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Moves all the existing web tests for getUniformX to web_ui/tests.
Commits shaders to github in addition to the impellerc generated string. Had to manually translate them from the dumped SKSL string to GLSL and recompile, there may be small differences.
Updates the impellerc generated strings
Does not fix the web testing build system to have this happen in a non-brittle way. That should happen at some point.