-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add tests for invalid value warnings
- Loading branch information
Showing
2 changed files
with
87 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!-- | ||
- This file is part of the QuestionPy Moodle plugin - https://questionpy.org | ||
- | ||
- Moodle is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU General Public License as published by | ||
- the Free Software Foundation, either version 3 of the License, or | ||
- (at your option) any later version. | ||
- | ||
- Moodle is distributed in the hope that it will be useful, | ||
- but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
- GNU General Public License for more details. | ||
- | ||
- You should have received a copy of the GNU General Public License | ||
- along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
|
||
<!-- Please keep me in sync with input-values.xhtml. --> | ||
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:qpy="http://questionpy.org/ns/question" id="my_div"> | ||
<input type="text" name="my_text" value="original"/> | ||
|
||
<input type="checkbox" name="my_checkbox_value" value="value" qpy:warn-on-unknown-option="no"/> | ||
<input type="checkbox" name="my_checkbox_on" qpy:warn-on-unknown-option="no"/> | ||
|
||
<input type="radio" name="my_radio" value="value1" qpy:warn-on-unknown-option="no"/> | ||
<input type="radio" name="my_radio" value="value2" checked="checked"/> | ||
|
||
<select name="my_select" qpy:warn-on-unknown-option="no"> | ||
<option value="value1"/> | ||
<option value="value2" selected="selected"/> | ||
<option value="value3"/> | ||
</select> | ||
|
||
<input type="hidden" name="my_hidden" value="original"/> | ||
|
||
<input name="my_button" type="button" value="value1"/> | ||
<input name="my_button" type="button" value="value2"/> | ||
</div> |