-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not wrap
shuffled-index
in <span>
and combine tests
- Loading branch information
Showing
5 changed files
with
34 additions
and
81 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 |
---|---|---|
@@ -1,6 +1,18 @@ | ||
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:qpy="http://questionpy.org/ns/question" qpy:shuffle-contents=""> | ||
<span>Element 1</span> | ||
<span>Element 2</span> | ||
<span>Element 3</span> | ||
<span>Element 4</span> | ||
<span>Element 1, shuffled to <qpy:shuffled-index/></span> | ||
<span>Element 2, shuffled to <qpy:shuffled-index format="123"/></span> | ||
<span>Element 3, shuffled to <qpy:shuffled-index format="abc"/></span> | ||
<span>Element 4, shuffled to <qpy:shuffled-index format="III"/></span> | ||
<div> | ||
Element 5, shuffled to <qpy:shuffled-index/> | ||
<div qpy:shuffle-contents=""> | ||
<span>Nested element 1, shuffled to <qpy:shuffled-index/></span> | ||
<span>Nested element 2, shuffled to <qpy:shuffled-index/></span> | ||
</div> | ||
</div> | ||
<div qpy:shuffle-contents=""> | ||
<!-- Nested shuffle being a direct child is an edge case we need to support. --> | ||
<span>Nested element 1, shuffled to <qpy:shuffled-index/></span> | ||
<span>Nested element 2, shuffled to <qpy:shuffled-index/></span> | ||
</div> | ||
</div> |
8 changes: 0 additions & 8 deletions
8
tests/questionpy_sdk/webserver/test_data/shuffled-index-nested.xhtml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
tests/questionpy_sdk/webserver/test_data/shuffled-index.xhtml
This file was deleted.
Oops, something went wrong.
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