Clean up fixtures automatically between tests - Nesting test fixture markup within a DIV allows Jasmine to automatically restore the fixture to a clean state between each test run. Fix id attribute collision typo - This looks like a copy/pasta gone wrong; the two test INPUT elements were both declared with the same id, `input_1`. Remove trailing whitespace
54 lines
2.0 KiB
HTML
54 lines
2.0 KiB
HTML
<div>
|
|
<section
|
|
id="inputtype_1"
|
|
data="getGrade"
|
|
data-stored="{"answer":"{\"cylinder\":true,\"cube\":true}","state":"{\"selectedObjects\":{\"cylinder\":true,\"cube\":true}}"}"
|
|
data-getstate="getState"
|
|
data-setstate="setState"
|
|
data-processed="false"
|
|
data-sop="false"
|
|
class="jsinput">
|
|
|
|
<div class="script_placeholder"/>
|
|
<iframe
|
|
name="iframe_1"
|
|
sandbox="allow-scripts
|
|
allow-popups
|
|
allow-same-origin
|
|
allow-forms
|
|
allow-pointer-lock"
|
|
height="500"
|
|
width="500"
|
|
src="https://studio.edx.org/c4x/edX/DemoX/asset/webGLDemo.html">
|
|
</iframe>
|
|
<input type="hidden" name="input_1" id="input_1" waitfor value="{"answer":"{\"cylinder\":true,\"cube\":true}","state":"{\"selectedObjects\":{\"cylinder\":true,\"cube\":true}}"}">
|
|
</div>
|
|
</section>
|
|
<section
|
|
id="inputtype_2"
|
|
data="getGrade"
|
|
data-stored="{"answer":"{\"cylinder\":true,\"cube\":true}","state":"{\"selectedObjects\":{\"cylinder\":true,\"cube\":true}}"}"
|
|
data-getstate="getState"
|
|
data-setstate="setState"
|
|
data-processed="false"
|
|
data-sop="false"
|
|
class="jsinput">
|
|
|
|
<div class="script_placeholder"/>
|
|
<iframe
|
|
name="iframe_2"
|
|
sandbox="allow-scripts
|
|
allow-popups
|
|
allow-same-origin
|
|
allow-forms
|
|
allow-pointer-lock"
|
|
height="500"
|
|
width="500"
|
|
src="https://studio.edx.org/c4x/edX/DemoX/asset/webGLDemo.html">
|
|
</iframe>
|
|
<input type="hidden" name="input_2" id="input_2" waitfor value="{"answer":"{\"cylinder\":true,\"cube\":true}","state":"{\"selectedObjects\":{\"cylinder\":true,\"cube\":true}}"}">
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|