-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Issue 9100 #9116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Jextic
wants to merge
15
commits into
processing:main
Choose a base branch
from
Jextic:issue-9100
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Issue 9100 #9116
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d5c3103
Implemented lang parameter for describe functions
Jextic acbd33d
Merge branch 'processing:main' into issue-9100
Jextic 91be0c3
Refactored some files to make it easier to read and made the paramete…
Jextic 771cb45
Tests 5 variations of parameters for describe and describeElement
Jextic 01c3161
Removed my tests that might have preexisted
Jextic 31e0438
Manual test pages from the research are added. Also included some tes…
Jextic 6cfaf8a
small JSDoc updates for param and helper function
Jextic 2261fdd
Merge branch 'main' into issue-9100
perminder-17 6ad6090
Merge branch 'main' into issue-9100
perminder-17 5cb9485
Merge branch 'main' into issue-9100
perminder-17 bda2d12
Modified parameter orders for describe functions and incorporated dec…
Jextic 2c170b3
Updated unit and manual tests
Jextic 93cb3ae
Throws friendly error instead of TypeError
Jextic 2057d39
Merge branch 'main' into issue-9100
Jextic 7a7bbd5
Merge branch 'main' into issue-9100
perminder-17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
test/manual-test-examples/accessibility/describe/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| <title>Accessibility: describe language</title> | ||
| <link rel="stylesheet" href="../../styles.css"> | ||
|
|
||
| <script language="javascript" src="../../../../lib/p5.js"></script> | ||
| <script language="javascript" type="text/javascript" src="sketch.js"></script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <header> | ||
| <p>Accessibility: describe() language test</p> | ||
| </header> | ||
|
|
||
| <main> | ||
| <p>Read each region with a screen reader. Compare regions without a lang attribute with those that have one.</p> | ||
|
|
||
| <div aria-label="English No Lang"> | ||
| <p>this is a test</p> | ||
| </div> | ||
| <div aria-label="English With Lang" lang="en"> | ||
| <p>this is a test</p> | ||
| </div> | ||
| <div aria-label="Spanish No Lang"> | ||
| <p>esto es una prueba</p> | ||
| </div> | ||
| <div aria-label="Spanish With Lang" lang="es"> | ||
| <p>esto es una prueba</p> | ||
| </div> | ||
| <div aria-label="Vietnamese No Lang"> | ||
| <p>Cái này là bài thi</p> | ||
| </div> | ||
| <div aria-label="Vietnamese With Lang" lang="vi"> | ||
| <p>Cái này là bài thi</p> | ||
| </div> | ||
|
|
||
| <h1>p5.js generated descriptions</h1> | ||
| <p>Read the descriptions generated by the canvases below. The visible LABEL descriptions are included for inspection.</p> | ||
| </main> | ||
| </body> | ||
|
|
||
| </html> |
40 changes: 40 additions & 0 deletions
40
test/manual-test-examples/accessibility/describe/sketch.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| function setup() { | ||
| // Uncomment any of the following lines to test | ||
|
|
||
| createCanvas(400, 400); | ||
|
|
||
| // Text only (fallback is the default) | ||
| // describe('Cái này là bài thi'); | ||
|
|
||
| // Text and display | ||
| // describe('Esto es una prueba', LABEL); | ||
|
|
||
| // Text and lang | ||
| //describe('Esto es una prueba', 'es'); | ||
|
|
||
| // Text, display, and lang | ||
| // describe('Cái này là bài thi', LABEL, 'vi'); | ||
|
|
||
| // Text and lang | ||
| // describe('यह टेस्ट है', 'hi'); | ||
|
|
||
|
|
||
|
|
||
| // Name and text only (fallback is the default) | ||
| // describeElement('a', 'Cái này là bài thi'); | ||
|
|
||
| // Name, text, and display | ||
| // describeElement('b', 'Esto es una prueba', LABEL); | ||
|
|
||
| // Name, text, and lang | ||
| // describeElement('c', 'Esto es una prueba', 'es'); | ||
|
|
||
| // Name, text, display, and lang | ||
| // describeElement('d', 'Cái này là bài thi', LABEL, 'vi'); | ||
|
|
||
| // Name, text, and lang | ||
| // describeElement('e', 'यह टेस्ट है', 'hi'); | ||
|
|
||
| fill('blue'); | ||
| circle(200, 150, 100); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here for
describe()you need to add an overload in the JSDoc, since this function now has two signatures.When I ran this sketch
it gives an FES error on every frame
After adding the overload,
docs/parameterData.jsonalso needs to be updated for it (you can simply runnpm run docsfor it)I think you need to do the same thing with
describeElement()too.