WebGPU
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # OBSOLETE - [WebGPU CTS](https://github.com/gpuweb/cts) Test Plan This document formerly held all of the unimplemented test plans. These have been moved into the gpuweb/cts repository. **Further changes should be made there. The guidelines below are outdated.** --- --- --- --- --- ## Contents of this document Everything in this document (once it is up-to-date with these guidelines) should be **unimplemented**. Once tests are in the process of being implemented, the plan **moves** to the `description` of a `.spec.ts` file (or to a `README.txt` file) in the CTS. This prevents multiple sources of information from getting out of sync. The contents of the `description`s and `README.txt` files appear as text in the CTS's standalone runner. The test implementation To-Do list is: - Anything in this document. - Any testing labeled TODO in the CTS. ## Test planning and implementation workflow ### Lifetime of new test plans For anything in the spec/API/ToC that is not currently covered by the test plan. Note that (the completed portions of) the initial version of this document, is based on parts of the planned [Table of Contents](https://github.com/gpuweb/gpuweb/wiki/Table-of-Contents) as of ~2020-08. 1. Test plan is added to this document. 1. Test plan is reviewed (reviewer should be the test implementer if different from the test planner). 1. Tests are implemented\*. ### Lifetime of test plan changes to match spec changes For changes that come through the specification process. TODO: Rename the columns to "Needs Test Plan" and "Specification Done". 1. Spec changes go through the [WebGPU spec project tracker](https://github.com/orgs/gpuweb/projects/1). 1. Once they reach the "Needs Test Plan" column, they can be added to this document (or directly into the CTS) and then moved to the "Specification Done" column. - Some features may have tests written before their specification is complete. If they are still in the "Needs Specification" column just make sure there is a note on the issue that tests are being written, and make sure any spec changes get reflected in the tests. - If adding to an unimplemented test plan in this document, just edit the test plan directly. If adding to a test plan that has already been moved into the CTS, either: - Leave a TODO in this document describing the changes needed, or - Open a PR leaving a TODO in the test description. 1. Test plan is reviewed (if needed). 1. Tests are implemented\*. ### Lifetime of additions to existing test plans For any new cases or testing found by any test plan author, WebGPU spec author, WebGPU implementer, WebGPU user, etc. For example, inspiration could come from reading an existing test suite (like dEQP or WebGL). These may have been filed as issues against the CTS repository on GitHub. 1. Plan is added to this document (or directly into the CTS). The issue, if any, can be closed so it's tracked in just one place. 1. Test plan is reviewed (if needed). 1. Tests are implemented\*. ### Requesting a review **To request a review on test plan edits, notify @kainino0x in a HackMD comment, or someone else via GitHub or email.** If comfortable, feel free to begin on test implementation before review; most review comments will just suggest additional corner cases or generalizations. ### \* Implementing tests 1. When a test implementer picks up any item in this document, they **move** it into the test description as part of their PR, leaving a note that it is in progress. - If not implemented in the same PR, the test plan item must be marked as "TODO" in the test description. 1. Once the PR is open (may be draft), update this document to **link to the PR.** ## Conventions ### Terms/Syntax - `Iff`: If and only if - `x=` or <code>&times;=</code>: cartesian product (for combinatorial test coverage) - Sometimes this will result in too many test cases;simplify as needed during planning or implementation. - `{x,y,z}`: list of cases to test - Control case: a case included to make sure that the rest of the cases aren't missing their target by testing some other error case. ### Validation tests Validation tests check the validation rules that are (or will be) set by the WebGPU spec. Validation tests try to carefully trigger the individual validation rules in the spec, without simultaneously triggering other rules. Validation errors *generally* generate WebGPU errors, not exceptions. But check the spec on a case-by-case basis. Test parameterization can help write many validation tests more succinctly, while making it easier for both authors and reviewers to be confident that an aspect of the API is tested fully. Examples: - [`webgpu:api,validation,render_pass,resolve:resolve_attachment:*`](https://github.com/gpuweb/cts/blob/ded3b7c8a4680a1a01621a8ac859facefadf32d0/src/webgpu/api/validation/render_pass/resolve.spec.ts#L35) - [`webgpu:api,validation,createBindGroupLayout:bindingTypeSpecific_optional_members:*`](https://github.com/gpuweb/cts/blob/ded3b7c8a4680a1a01621a8ac859facefadf32d0/src/webgpu/api/validation/createBindGroupLayout.spec.ts#L68) Use your own discretion when deciding the balance between heavily parameterizing a test and writing multiple separate tests. ### Operation tests Operation tests test the actual results of using the API. They execute (sometimes significant) code and check that the result is within the expected set of behaviors (which can be quite complex to compute). Note that operation tests need to test a lot of interactions between different features, and so can become quite complex. Try to reduce the complexity by utilizing combinatorics and helpers, and splitting/merging test files as needed. These should be `GPUTest`s, so any validation errors are test failures. These tests should not explicitly try to trigger validation errors, but could choose to do so if it simplifies the combinatorics. When it's easier to write an operation test with invalid cases, use `ParamsBuilder.filter`/`.unless` to avoid invalid cases, or detect and `expect` validation errors in some cases. **Default value tests** (for arguments and dictionary members) should usually be operation tests - all you have to do is make sure the behavior with `undefined` has the same expected result that you have when the default value is specified explicitly.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully