From 9b0e4b6c444284c1770a2f6fc9b37cdb92777daa Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Fri, 21 Jul 2017 19:23:05 +0200 Subject: [PATCH] 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 --- dom/media/test/test_source_null.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/media/test/test_source_null.html b/dom/media/test/test_source_null.html index e6a536749675..3d6a3619fd35 100644 --- a/dom/media/test/test_source_null.html +++ b/dom/media/test/test_source_null.html @@ -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");