Bug 1383122 - P2. Amend mochitest to ensure null is properly converted to "null" string. r=jwwang
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 21 Jul 2017 19:23:05 +0200
changeset 421824 5a812783ca551343738bdfaddfa3d9f4a57c1450
parent 421823 c019d2c3663c3500892fa5100f4dc1fae06aef7c
child 421825 43c119144a326381483a414b15c924c4cf632fa2
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1383122
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1383122 - P2. Amend mochitest to ensure null is properly converted to "null" string. r=jwwang MozReview-Commit-ID: 13eeL3siXpy
dom/media/test/test_source_null.html
--- a/dom/media/test/test_source_null.html
+++ b/dom/media/test/test_source_null.html
@@ -19,12 +19,15 @@ https://bugzilla.mozilla.org/show_bug.cg
 </pre>
 
 <video id="v">
 <script>
 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>
 </html>