@@ -87,9 +87,7 @@ const setTheme = (theme: 'light' | 'dark') => {
8787 effects : themeCompartment . reconfigure ( getEditorTheme ( theme ) ) ,
8888 } ) ;
8989 editorView . dispatch ( {
90- effects : highlightCompartment . reconfigure (
91- syntaxHighlighting ( getHighlightStyle ( theme ) )
92- ) ,
90+ effects : highlightCompartment . reconfigure ( syntaxHighlighting ( getHighlightStyle ( theme ) ) ) ,
9391 } ) ;
9492 }
9593} ;
@@ -164,63 +162,6 @@ const defaultXml = `<?xml version="1.0" encoding="UTF-8"?>
164162 </qti-outcome-processing>
165163</qti-assessment-test>` ;
166164
167- const defaultXml2 = `<?xml version="1.0" encoding="utf-8" standalone="no"?>
168- <qti-assessment-item xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqtiasi_v3p0 https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqti_asiv3p0_v1p0.xsd" identifier="qti3-match-01" time-dependent="false" title="Match Item 1 - QTI3" adaptive="false">
169- <qti-response-declaration base-type="directedPair" cardinality="multiple" identifier="RESPONSE">
170- <qti-correct-response>
171- <qti-value>C R</qti-value>
172- <qti-value>D M</qti-value>
173- <qti-value>L M</qti-value>
174- <qti-value>P T</qti-value>
175- </qti-correct-response>
176- <qti-mapping default-value="0">
177- <qti-map-entry map-key="C R" mapped-value="1"/>
178- <qti-map-entry map-key="D M" mapped-value="0.5"/>
179- <qti-map-entry map-key="L M" mapped-value="0.5"/>
180- <qti-map-entry map-key="P T" mapped-value="1"/>
181- </qti-mapping>
182- </qti-response-declaration>
183- <qti-outcome-declaration base-type="float" cardinality="single" identifier="SCORE">
184- <qti-default-value>
185- <qti-value>0.0</qti-value>
186- </qti-default-value>
187- </qti-outcome-declaration>
188- <qti-item-body>
189- <qti-match-interaction max-associations="4" response-identifier="RESPONSE" shuffle="false">
190- <qti-prompt id="c">Match the following characters to the Shakespeare play they appeared in:</qti-prompt>
191- <qti-simple-match-set>
192- <qti-simple-associable-choice id="c1" identifier="C" match-max="1" aria-label="Capulet">Capulet</qti-simple-associable-choice>
193- <qti-simple-associable-choice id="c2" identifier="D" match-max="1" aria-label="Demetrius">Demetrius</qti-simple-associable-choice>
194- <qti-simple-associable-choice id="c3" identifier="L" match-max="1" aria-label="Lysander">Lysander</qti-simple-associable-choice>
195- <qti-simple-associable-choice id="c4" identifier="P" match-max="1" aria-label="Prospero">Prospero</qti-simple-associable-choice>
196- </qti-simple-match-set>
197- <qti-simple-match-set>
198- <qti-simple-associable-choice id="c5" identifier="M" match-max="4" aria-label="A Midsummer-Night's Dream">A Midsummer-Night's Dream</qti-simple-associable-choice>
199- <qti-simple-associable-choice id="c6" identifier="R" match-max="4" aria-label="Romeo and Juliet">Romeo and Juliet</qti-simple-associable-choice>
200- <qti-simple-associable-choice id="c7" identifier="T" match-max="4" aria-label="The Tempest">The Tempest</qti-simple-associable-choice>
201- </qti-simple-match-set>
202- </qti-match-interaction>
203- </qti-item-body>
204- <qti-response-processing>
205- <qti-response-condition>
206- <qti-response-if>
207- <qti-is-null>
208- <qti-variable identifier="RESPONSE"/>
209- </qti-is-null>
210- <qti-set-outcome-value identifier="SCORE">
211- <qti-base-value base-type="float">0.0</qti-base-value>
212- </qti-set-outcome-value>
213- </qti-response-if>
214- <qti-response-else>
215- <qti-set-outcome-value identifier="SCORE">
216- <qti-map-response identifier="RESPONSE"/>
217- </qti-set-outcome-value>
218- </qti-response-else>
219- </qti-response-condition>
220- </qti-response-processing>
221- </qti-assessment-item>
222- ` ;
223-
224165const q1Xml = `<?xml version="1.0" encoding="UTF-8"?>
225166<qti-assessment-item xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
226167 xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqtiasi_v3p0 https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqti_asiv3p0_v1p0.xsd"
0 commit comments