Index: third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/util/helpers.js |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/util/helpers.js b/third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/util/helpers.js |
index fb723c3f7906d09abb2a01f911d3a96de9fa9324..c13ce9146e2b283d45294ddc08cf490a770a1200 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/util/helpers.js |
+++ b/third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/util/helpers.js |
@@ -219,12 +219,13 @@ function allValidUsages(validUsages, emptyIsValid, mandatoryUsages) { |
// Algorithm name specifiers are case-insensitive. Generate several |
// case variations of a given name. |
-function allNameVariants(name) { |
+function allNameVariants(name, slowTest) { |
var upCaseName = name.toUpperCase(); |
var lowCaseName = name.toLowerCase(); |
var mixedCaseName = upCaseName.substring(0, 1) + lowCaseName.substring(1); |
+ // for slow tests effectively cut the amount of work in third by only |
+ // returning one variation |
+ if (slowTest) return [mixedCaseName]; |
return [upCaseName, lowCaseName, mixedCaseName]; |
} |
- |
- |