Bug 1383122 - P2. Amend mochitest to ensure null is properly converted to "null" string. r=jwwang

MozReview-Commit-ID: 13eeL3siXpy

--HG--
extra : rebase_source : 1cfa108414695ffc69c47d5fa9d494ee94c7b15a
This commit is contained in:
Jean-Yves Avenard 2017-07-21 19:23:05 +02:00
Родитель eb9666fa81
Коммит 9b0e4b6c44
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -24,6 +24,9 @@ var v = document.getElementById('v');
v.src = null; // crashes on NULL access if not handled
ok(true, "setting video.src to null didn't crash!");
var srcPath = v.src.split('/');
ok(srcPath.length >= 3, "src should be within dom/media/test");
is(srcPath[srcPath.length - 1], "null", "Setting src to null is handled like 'null' string");
</script>
</video>
</body>