-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1928 from IBMa/dev-1624
fixrule(`input_onchange_review`): Update the input types and messages
- Loading branch information
Showing
5 changed files
with
203 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
162 changes: 162 additions & 0 deletions
162
...ngine/test/v2/checker/accessibility/rules/input_onchange_review_ruleunit/Input-types.html
This file contains 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,162 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
|
||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<html lang="en"> | ||
|
||
<head> | ||
<title>RPT Test Suite</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<a href="#navskip">skip to main content</a> | ||
|
||
|
||
<h2>Test case: Input-hasNoOnChange.html</h2> | ||
|
||
|
||
|
||
<!-- ################################################################### --> | ||
|
||
|
||
<h3>Input OnChange event Tests</h3> | ||
|
||
<form action="..." method="post"> | ||
<fieldset> | ||
<legend>Legend text: Personal Information</legend> | ||
|
||
<input type="hidden" name="hide1" id="hide1" onchange="javaScript: alert( 'onDblClick event' )" /> | ||
<input type="hidden" name="hide2" id="hide2" onchange="javaScript: alert( 'onDblClick event' )" /> | ||
|
||
<label for="ln1">Date</label> | ||
<input type="date" name="date" id="ln1" onchange="javaScript: alert( 'onDblClick event' )" /> | ||
|
||
<label for="lfn2">Number</label> | ||
<input type="number" name="number" id="lfn2" onchange="javaScript: alert( 'onDblClick event' )"> | ||
|
||
<label for="lpw3">Password</label> | ||
<input type="password" name="lastpassword" id="lpw3" value="enter last password" title="enter last password" onchange="javaScript: alert( 'onDblClick event' ) " /> | ||
|
||
<input type="checkbox" name="athletic1" id="athletic1" value="athletic" title="strong" onchange="javaScript: alert( 'onDblClick event' ) " /> | ||
<label for="athletic1">Althletic</label> | ||
|
||
<input type="range" name="athletic2" id="athletic2" onchange="javaScript: alert( 'onDblClick event' ) " /> | ||
<label for="athletic2">Range</label> | ||
|
||
|
||
|
||
|
||
</fieldset> | ||
<button type="submit" onchange="javaScript: alert( 'onDblClick event' ) ">Submit</button> | ||
</form> | ||
|
||
<a name="navskip">End</a> | ||
|
||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["input_onchange_review"], | ||
results: [ | ||
{ | ||
"ruleId": "input_onchange_review", | ||
"value": [ | ||
"INFORMATION", | ||
"POTENTIAL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/form[1]/fieldset[1]/input[3]", | ||
"aria": "/document[1]/form[1]/group[1]" | ||
}, | ||
"reasonId": "potential_warning", | ||
"message": "Confirm that the user is advised if, due to a change of element value, a form automatically submits, a new window opens, or a change in focus occurs", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "input_onchange_review", | ||
"value": [ | ||
"INFORMATION", | ||
"POTENTIAL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/form[1]/fieldset[1]/input[4]", | ||
"aria": "/document[1]/form[1]/group[1]/spinbutton[1]" | ||
}, | ||
"reasonId": "potential_warning", | ||
"message": "Confirm that the user is advised if, due to a change of element value, a form automatically submits, a new window opens, or a change in focus occurs", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "input_onchange_review", | ||
"value": [ | ||
"INFORMATION", | ||
"POTENTIAL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/form[1]/fieldset[1]/input[5]", | ||
"aria": "/document[1]/form[1]/group[1]" | ||
}, | ||
"reasonId": "potential_warning", | ||
"message": "Confirm that the user is advised if, due to a change of element value, a form automatically submits, a new window opens, or a change in focus occurs", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "input_onchange_review", | ||
"value": [ | ||
"INFORMATION", | ||
"POTENTIAL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/form[1]/fieldset[1]/input[6]", | ||
"aria": "/document[1]/form[1]/group[1]/checkbox[1]" | ||
}, | ||
"reasonId": "potential_warning", | ||
"message": "Confirm that the user is advised if, due to a change of element value, a form automatically submits, a new window opens, or a change in focus occurs", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "input_onchange_review", | ||
"value": [ | ||
"INFORMATION", | ||
"POTENTIAL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/form[1]/fieldset[1]/input[7]", | ||
"aria": "/document[1]/form[1]/group[1]/slider[1]" | ||
}, | ||
"reasonId": "potential_warning", | ||
"message": "Confirm that the user is advised if, due to a change of element value, a form automatically submits, a new window opens, or a change in focus occurs", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |