Added integration tests for asymmetric equality testers

This commit is contained in:
Steve Gravrock
2019-09-22 12:07:23 -07:00
parent 223924a7a1
commit 795a80ec66
4 changed files with 249 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
(function(env) {
function hasFunctioningSets() {
env.hasFunctioningSets = function() {
if (typeof Set === 'undefined') {
return false;
}
@@ -40,10 +40,10 @@
} catch (e) {
return false;
}
}
};
env.requireFunctioningSets = function() {
if (!hasFunctioningSets()) {
if (!env.hasFunctioningSets()) {
env.pending('Browser has incomplete or missing support for Sets');
}
};