mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1191296 - Revert use of .includes() to .indexOf() != -1. r=jesup
This commit is contained in:
parent
972ca0f591
commit
0121fa196f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user