Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/util/helpers.js

Issue 2838603002: Added [SecureContext] to the subtle attribute (Closed)
Patch Set: Magic test starts doing differnt things out of the blue. Need to handle this properly. Avada Kedavr… Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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];
}
-
-

Powered by Google App Engine
This is Rietveld 408576698