Skip to content

Update validation tests of copyImageBitmapToTexture - #568

Merged
kainino0x merged 4 commits into
gpuweb:mainfrom
shaoboyan:fix_validation_copyIB
Jun 1, 2021
Merged

kainino0x merged 4 commits into
gpuweb:mainfrom
shaoboyan:fix_validation_copyIB

Conversation

@shaoboyan

@shaoboyan shaoboyan commented May 27, 2021 •

Copy link
Copy Markdown
Contributor

Update copyImageBitmapToTexture validation rules based on the new
CL (gpuweb/gpuweb#1737)


Author checklist for test code/plans:

  • All outstanding work is tracked with "TODO" in a test/file description or .unimplemented() on a test.
  • New helpers, if any, are documented in helper_index.md.
  • (Optional, sometimes not possible.) Tests pass (or partially pass without unexpected issues) in an implementation. (Add any extra details above.)

Reviewer sign-off for test code/plans: (Note: feel free to pull in other reviewers at any time for any reason.)

  • The test path is reasonable, the description "describes the test, succinctly, but in enough detail that a reader can read only the test plans in a file or directory and evaluate the completeness of the test coverage."
  • Tests appear to cover this area completely, except for outstanding TODOs. Validation tests use control cases.
    (This is critical for coverage. Assume anything without a TODO will be forgotten about forever.)
  • Existing (or new) test helpers are used where they would reduce complexity.
  • TypeScript code is readable and understandable (is unobtrusive, has reasonable type-safety/verbosity/dynamicity).

Update copyImageBitmapToTexture validation rules based on the new
CL (gpuweb/gpuweb#1737)
@shaoboyan

Copy link
Copy Markdown
Contributor Author

@kainino0x PTAL!

@github-actions

Copy link
Copy Markdown

Previews, as seen at the time of posting this comment:
Run this PR's tests live
8241cad

@github-actions

Copy link
Copy Markdown

Previews, as seen at the time of posting this comment:
Run this PR's tests live
6575422

@kainino0x kainino0x left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Please check the "Author" checklist. Do these tests pass in your local build?

@shaoboyan

Copy link
Copy Markdown
Contributor Author

Yes, these tests passed in my local except for some failures with some depth stencil texture format in destination_texture,format validation test(e.g. stencil8, ), which reports that the enum is not a valid enum for createTexture(Suspect it is my build chromium reason).

@github-actions

github-actions Bot commented Jun 1, 2021

Copy link
Copy Markdown

Previews, as seen at the time of posting this comment:
Run this PR's tests live
0e20c51

@kainino0x kainino0x left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kainino0x
kainino0x enabled auto-merge (squash) June 1, 2021 19:12
@kainino0x
kainino0x merged commit 7c0e4f9 into gpuweb:main Jun 1, 2021
@github-actions

github-actions Bot commented Jun 1, 2021

Copy link
Copy Markdown

Previews, as seen at the time of posting this comment:
Run this PR's tests live
0e45903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants