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 hasFunctioningMaps() {
env.hasFunctioningMaps = function() {
if (typeof Map === 'undefined') {
return false;
}
@@ -36,10 +36,10 @@
} catch (e) {
return false;
}
}
};
env.requireFunctioningMaps = function() {
if (!hasFunctioningMaps()) {
if (!env.hasFunctioningMaps()) {
env.pending('Browser has incomplete or missing support for Maps');
}
};