-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add media to test-cypress and test-viewer
- Loading branch information
Showing
21 changed files
with
973 additions
and
9 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
10 changes: 10 additions & 0 deletions
10
...ges/test-cypress/media/bafkreia3r7nyo7bvh3xnx47jvrb7y755a2xg3yhayg5jllknuedks4oalm.doenet
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,10 @@ | ||
<p name="p">The <alert>DoenetML</alert> of a graph:</p> | ||
|
||
<pre><displayDoenetML> | ||
<graph> | ||
<point name="P" /> | ||
</graph> | ||
</displayDoenetML></pre> | ||
|
||
<p>The DoenetML of the p:</p> | ||
<pre>$p.doenetML</pre> |
5 changes: 5 additions & 0 deletions
5
...ges/test-cypress/media/bafkreia7xqmfuhas6yrpr7hilr5khjxqsuqddgurnutqczyebj7lzw7zyy.doenet
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,5 @@ | ||
<variantControl numVariants="2" variantNames="first last" /> | ||
<select> | ||
<option selectForVariants="first">first</option> | ||
<option selectForVariants="last">last</option> | ||
</select> |
5 changes: 5 additions & 0 deletions
5
...ges/test-cypress/media/bafkreiatlgd6rb5reyd33tba62rpgpkyy33edxc4z2wkvcgluuqo2gbenu.doenet
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,5 @@ | ||
<section> | ||
<section copyFromUri="doenet:cid=bafkreici7lwt3yywhf75ypbcu62bumszzrxqgukaetwywajjbbnh45zfqa" name="greetings" /> | ||
|
||
<p>Don't get this: <text name="hi">Bye</text></p> | ||
</section> |
14 changes: 14 additions & 0 deletions
14
...ges/test-cypress/media/bafkreiatr7qxnkb5lnjd7bccsiravqyy7xnpynyskilyg2etb3hva7oe74.doenet
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,14 @@ | ||
<section boxed> | ||
<title>Copied content</title> | ||
<copy uri="doenet:cid=bafkreia3r7nyo7bvh3xnx47jvrb7y755a2xg3yhayg5jllknuedks4oalm" | ||
name="external"/> | ||
</section> | ||
|
||
<p>Grab the DoenetML from external p:</p> | ||
|
||
<pre>$(external/p.doenetML)</pre> | ||
|
||
<p>DoenetML of single line:</p> | ||
<pre><displayDoenetML> | ||
<text>hi</text> | ||
</displayDoenetML></pre> |
91 changes: 91 additions & 0 deletions
91
...ges/test-cypress/media/bafkreiatwotzdmrphuof5j4gsr42jvt266ourxqlpukspkedwe7kfwflze.doenet
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,91 @@ | ||
<module name="cobwebAppletGraded"> | ||
<setup> | ||
<customAttribute componentType="function" attribute="function" defaultValue="x(4-x)" | ||
assignNames="f" /> | ||
<customAttribute componentType="number" attribute="x0" defaultValue="1" assignNames="x0" /> | ||
<customAttribute componentType="number" attribute="initialInitialValue" defaultValue="0" | ||
assignNames="initialInitialValue" /> | ||
<customAttribute componentType="number" attribute="initialValueDx" defaultValue="0.5" | ||
assignNames="initialValueDx" /> | ||
<customAttribute componentType="number" attribute="initialValueOffset" defaultValue="0" | ||
assignNames="initialValueOffset" /> | ||
<customAttribute componentType="number" attribute="numIterationsRequired" defaultValue="0" | ||
assignNames="numIterationsRequired" /> | ||
<customAttribute componentType="_componentSize" attribute="width" defaultValue="300px" | ||
assignNames="width" /> | ||
<customAttribute componentType="_componentSize" attribute="height" defaultValue="300px" | ||
assignNames="height" /> | ||
<customAttribute componentType="number" attribute="xmin" defaultValue="-10" assignNames="xmin" /> | ||
<customAttribute componentType="number" attribute="xmax" defaultValue="10" assignNames="xmax" /> | ||
<customAttribute componentType="number" attribute="ymin" defaultValue="-10" assignNames="ymin" /> | ||
<customAttribute componentType="number" attribute="ymax" defaultValue="10" assignNames="ymax" /> | ||
<customAttribute componentType="boolean" attribute="showNavigation" defaultValue="true" | ||
assignNames="showNavigation" /> | ||
<customAttribute componentType="number" attribute="attractThreshold" defaultValue="0.5" | ||
assignNames="attractThreshold" /> | ||
<customAttribute componentType="math" attribute="variable" defaultValue="x" | ||
assignNames="variable" /> | ||
<customAttribute componentType="math" attribute="timeVariable" defaultValue="n" | ||
assignNames="timeVariable" /> | ||
<customAttribute componentType="boolean" attribute="checkInitialCondition" defaultValue="true" | ||
assignNames="checkInitialCondition" /> | ||
<customAttribute componentType="number" attribute="initialConditionWeight" defaultValue="1" | ||
assignNames="initialConditionWeight" /> | ||
<customAttribute componentType="number" attribute="cobwebbingWeight" defaultValue="1" | ||
assignNames="cobwebbingWeight" /> | ||
<customAttribute componentType="boolean" attribute="showCalculatedValues" defaultValue="true" | ||
assignNames="showCalculatedValues" /> | ||
<customAttribute componentType="text" attribute="grid" defaultValue="none" assignNames="grid" /> | ||
<customAttribute componentType="point" attribute="defaultPoint" defaultValue="" | ||
assignNames="defaultPoint" /> | ||
</setup> | ||
|
||
<copy | ||
uri="doenet:cid=bafkreighf6sivfiy44rjw6ogye222eugueeg2lxuijobo4bvyyjxxceaqy&doenetId=2dnQm1B4zsbGzreEn0GKa" | ||
name="cobwebApplet" function="$f" x0="$x0" initialInitialValue="$initialInitialValue" | ||
initialValueDx="$initialValueDx" initialValueOffset="$initialValueOffset" | ||
numIterationsRequired="$numIterationsRequired" width="$width" height="$height" xmin="$xmin" | ||
xmax="$xmax" ymin="$ymin" ymax="$ymax" showNavigation="$showNavigation" | ||
attractThreshold="$attractThreshold" variable="$variable" timeVariable="$timeVariable" | ||
showCalculatedValues="$showCalculatedValues" grid="$grid" defaultPoint="$defaultPoint" /> | ||
|
||
<conditionalContent condition="$checkInitialCondition"> | ||
<p>Initial condition: <answer name="initialCorrect" weight="$initialConditionWeight"> | ||
<award> | ||
<when> | ||
<copy source="cobwebApplet/initialCorrect" /> | ||
</when> | ||
</award> | ||
<considerAsResponses> | ||
<copy source="cobwebApplet/initialPoint" /> | ||
<copy source="cobwebApplet/atLeastOnePoint" /> | ||
</considerAsResponses> | ||
</answer> | ||
</p> | ||
</conditionalContent> | ||
|
||
<p>Correct cobwebbing: <answer name="correctCobwebbing" weight="$cobwebbingWeight"> | ||
<award credit="$(cobwebApplet/fractionCorrectCobweb)"> | ||
<when>true</when> | ||
</award> | ||
<considerAsResponses> | ||
<copy prop="numIterateValues" source="cobwebApplet/cobwebPolyline" /> | ||
<and> | ||
<copy prop="correctVertices" source="cobwebApplet/cobwebPolyline" /> | ||
</and> | ||
<copy prop="vertices" source="cobwebApplet/cobwebPolyline" /> | ||
</considerAsResponses> | ||
</answer> | ||
</p> | ||
<feedback condition="$(correctCobwebbing.submittedResponse1) = 1" name="startFeedback"> | ||
To start cobwebbing, click the "Add line" button and move the point at the end of the line. | ||
</feedback> | ||
<feedback condition="$(correctCobwebbing.submittedResponse2) = false" name="incorrectFeedback"> | ||
At least one point on cobweb plot is incorrect. | ||
</feedback> | ||
<feedback | ||
condition="$(correctCobwebbing.submittedResponse2) = true and $(correctCobwebbing.submittedResponse1) > 1 and $(correctCobwebbing.submittedResponse1) <= $numIterationsRequired" | ||
name="insufficientFeedback"> For full credit, calculate at least $numIterationsRequired iterates | ||
(i.e., to <m>x_{$numIterationsRequired}</m>). </feedback> | ||
|
||
</module> |
3 changes: 3 additions & 0 deletions
3
...ges/test-cypress/media/bafkreiblfl6xriye7uuiik6xlnuj3suf3xo236enwidz5wyeew7pcec3ba.doenet
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,3 @@ | ||
<copy uri="doenet:cid=bafkreifbeoxzphrpufrirccso2l4rtqgbcgli2bhbdzmccaopj3u6fkmdy" name="greetings" /> | ||
|
||
<p>Don't get this: <text name="hi">Bye</text></p> |
55 changes: 55 additions & 0 deletions
55
...ges/test-cypress/media/bafkreici7lwt3yywhf75ypbcu62bumszzrxqgukaetwywajjbbnh45zfqa.doenet
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,55 @@ | ||
<section><title>Outer</title> | ||
<p>Intended target: <text name="hi">Hello</text></p> | ||
|
||
<p>Five copies: | ||
<copy source="hi" name="c1" /> | ||
<copy source="/hi" name="c2" /> | ||
<copy source="../hi" name="c3" /> | ||
<copy source="../../hi" name="c4" /> | ||
<copy source="../../../hi" name="c5" /> | ||
</p> | ||
|
||
<section name="s" newNamespace><title>New namespace</title> | ||
<p>Local target: <text name="hi">Hola</text></p> | ||
<p>Five copies of local: | ||
<copy source="hi" name="l1" /> | ||
<copy source="/s/hi" name="l2" /> | ||
<copy source="../s/hi" name="l3" /> | ||
<copy source="../../s/hi" name="l4" /> | ||
<copy source="../../../s/hi" name="l5" /> | ||
</p> | ||
<p>Five copies of base: | ||
<copy source="/hi" name="c1" /> | ||
<copy source="../hi" name="c2" /> | ||
<copy source="../../hi" name="c3" /> | ||
<copy source="../../../hi" name="c4" /> | ||
<copy source="../../../../hi" name="c5" /> | ||
</p> | ||
|
||
<subsection name="s" newNamespace><title>Another new namespace</title> | ||
<p>Local target: <text name="hi">Marhaban</text></p> | ||
<p>Five copies of local: | ||
<copy source="hi" name="l1" /> | ||
<copy source="/s/s/hi" name="l2" /> | ||
<copy source="../s/hi" name="l3" /> | ||
<copy source="../../s/s/hi" name="l4" /> | ||
<copy source="../../../s/s/hi" name="l5" /> | ||
</p> | ||
<p>Five copies of middle: | ||
<copy source="/s/hi" name="m1" /> | ||
<copy source="../hi" name="m2" /> | ||
<copy source="../../s/hi" name="m3" /> | ||
<copy source="../../../s/hi" name="m4" /> | ||
<copy source="../../../../s/hi" name="m5" /> | ||
</p> | ||
<p>Five copies of base: | ||
<copy source="/hi" name="c1" /> | ||
<copy source="../../hi" name="c2" /> | ||
<copy source="../../../hi" name="c3" /> | ||
<copy source="../../../../hi" name="c4" /> | ||
<copy source="../../../../../hi" name="c5" /> | ||
</p> | ||
</subsection> | ||
|
||
</section> | ||
</section> |
4 changes: 4 additions & 0 deletions
4
...ges/test-cypress/media/bafkreid5s6fwzzfaax7pr3d2i2iu2743vvzrvttjy55vcmvunka7nu3ope.doenet
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,4 @@ | ||
|
||
<copy name="problem1" uri="doenet:CID=bafkreifgmyjuw4m6odukznenshkyfupp3egx6ep3jgnlo747d6s5v7nznu" /> | ||
|
||
<copy name="problem2" uri="doenet:CID=bafkreide4mismb45mxved2ibfh5jnj75kty7vjz7w6zo7goyxpwr2e7wti" /> |
13 changes: 13 additions & 0 deletions
13
...ges/test-cypress/media/bafkreide4mismb45mxved2ibfh5jnj75kty7vjz7w6zo7goyxpwr2e7wti.doenet
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,13 @@ | ||
<problem name="derivativeProblem" newNamespace > | ||
<title>Derivative problem</title> | ||
|
||
<p>What is the derivative of <math name="expr">x^2</math>? | ||
<answer> | ||
<award> | ||
<derivative>$expr</derivative> | ||
</award> | ||
</answer> | ||
</p> | ||
|
||
|
||
</problem> |
31 changes: 31 additions & 0 deletions
31
...ges/test-cypress/media/bafkreidqud3rixmphu3jufuke4rw7magtcrbrjgeo6ihkoyonsig7wciey.doenet
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,31 @@ | ||
<title>Animal sounds</title> | ||
|
||
<variantControl nvariants="4" variantNames="cat dog mouse fish"/> | ||
|
||
<select assignNames="(animal sound)" hide> | ||
<option selectForVariantNames="cat"> | ||
<text>cat</text><text>meow</text> | ||
</option> | ||
<option selectForVariantNames="dog"> | ||
<text>dog</text><text>woof</text> | ||
</option> | ||
<option selectForVariantNames="mouse"> | ||
<text>mouse</text><text>squeak</text> | ||
</option> | ||
<option selectForVariantNames="fish"> | ||
<text>fish</text><text>blub</text> | ||
</option> | ||
</select> | ||
|
||
<p>What does the $animal say?</p> | ||
<answer name="ans"> | ||
<choiceinput randomizeOrder> | ||
<choice credit="$animal=cat" >meow</choice> | ||
<choice credit="$animal=dog" >woof</choice> | ||
<choice credit="$animal=mouse" >squeak</choice> | ||
<choice credit="$animal=fish" >blub</choice> | ||
</choiceinput> | ||
</answer> | ||
|
||
<feedback condition="$ans=$sound"><p>That's right, the $animal goes $sound!</p></feedback> | ||
<feedback condition="$ans!=$sound"><p>Try again.</p></feedback> |
Oops, something went wrong.