Source code

Revision control

Other Tools

Test Info: Warnings

  • This test gets skipped with pattern: (os == "win" && processor == "aarch64")
<title>Load resource from source element with empty type</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="manifest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<video id="type"><source src="gizmo.mp4" type></video>
<video id="type-and-equal"><source src="gizmo.mp4" type=></video>
<video id="type-and-equal-quotation-marks"><source src="gizmo.mp4" type=""></video>
<script class="testbody" type="text/javascript">
* This test is used to ensure that media element can start loading when its
* child source element with empty type property. We would test following forms,
* `type`, `type=` and `type=""`.
const videos = document.getElementsByTagName("video");
const videoNum = videos.length;
let loadedElementsNum = 0;
for (let video of videos) {
() => {
ok(true, `loaded element '${}'`);
if (++loadedElementsNum == videoNum) {
}, { once: true});