Bug 1191296 - Revert use of .includes() to .indexOf() != -1. r=jesup

This commit is contained in:
Jan-Ivar Bruaroey 2015-08-05 12:03:50 -04:00
parent 972ca0f591
commit 0121fa196f

View File

@ -90,10 +90,10 @@ runTest(function() {
var dict = navigator.mediaDevices.getSupportedConstraints();
var supported = Object.keys(dict);
mustSupport.forEach(key => ok(supported.includes(key) && dict[key],
mustSupport.forEach(key => ok(supported.indexOf(key) != -1 && dict[key],
"Supports " + key));
var unexpected = supported.filter(key => !mustSupport.includes(key));
var unexpected = supported.filter(key => mustSupport.indexOf(key) == -1);
is(unexpected.length, 0,
"Unanticipated support (please update test): " + unexpected);