Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317

This commit is contained in:
Josh Matthews 2018-01-04 13:44:24 -05:00
parent aa199307c8
commit 2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions

View file

@ -669,8 +669,12 @@ ReflectionTests.reflects = function(data, idlName, idlObj, domName, domObj) {
}
if (data.keywords[i].length > 1) {
domTests.push(data.keywords[i].slice(1));
idlTests.push(data.keywords[i].slice(1));
var sliced = data.keywords[i].slice(1);
// If slicing a value yields another valid value, then skip it since it results in duplicate tests.
if (data.keywords.indexOf(sliced) == -1) {
domTests.push(sliced);
idlTests.push(sliced);
}
}
if (data.keywords[i] != data.keywords[i].toLowerCase()) {