+2017-01-19 Joseph Pecoraro <pecoraro@apple.com>
+
+ Include SubtleCrypto test on experimental-features test page
+ https://bugs.webkit.org/show_bug.cgi?id=167226
+
+ Reviewed by Yusuke Suzuki.
+
+ * experimental-features.html:
+ Add a test for SubtleCrypto and make the test resilient against exceptions.
+
2017-01-19 Timothy Hatcher <timothy@hatcher.name>
Add Tesla to the domain associations on the team page
window.es6modules = true;
</script>
<script>
-
function testCSSGrid() {
return CSS.supports("display", "grid");
}
return window.es6modules;
}
+function testSubtleCrypto() {
+ return window.crypto.subtle;
+}
+
window.addEventListener("load", function () {
Array.from(document.querySelectorAll(".test")).forEach(element => {
- var testFunction = window[`test${element.id}`];
- if (typeof testFunction === "function")
- element.classList.add(testFunction() ? "enabled" : "disabled");
+ var enabled = false;
+ try {
+ var testFunction = window[`test${element.id}`];
+ enabled = !!testFunction();
+ } catch (e) {
+ console.error(e);
+ }
+ element.classList.add(enabled ? "enabled" : "disabled");
});
}, false);
-
- </script>
+</script>
</head>
<body>
<div class="content">
<div class="test" id="Gamepad"><p>Gamepad API</p></div>
<div class="test" id="FormValidation"><p>HTML Form Validation</p></div>
<div class="test" id="InputEvents"><p>HTML Input Events</p></div>
+ <div class="test" id="SubtleCrypto"><p>SubtleCrypto</p></div>
<div class="test" id="VariationFonts"><p>Variation Fonts</p></div>
<div class="test" id="WebGL2"><p>WebGL 2.0</p></div>
</div>