 filter out IE8 Compat Mode
    //   which false positives.
    tests['hashchange'] = function() {
      return isEventSupported('hashchange', window) && (document.documentMode === undefined || document.documentMode > 7);
    };

    // Per 1.6:
    // This used to be Modernizr.historymanagement but the longer
    // name has been deprecated in favor of a shorter and property-matching one.
    // The old API is still available in 1.6, but as of 2.0 will throw a warning,
    // and in the first release thereafter disappear entirely.
    tests['history'] = function() {
      return !!(window.history && history.pushState);
    };

    tests['draganddrop'] = function() {
        var div = document.createElement('div');
        return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div);
    };

    // FIXME: Once FF10 is sunsetted, we can drop prefixed MozWebSocket
    // bugzil.la/695635
    tests['websockets'] = function() {
        for ( var i = -1, len = cssomPrefixes.length; ++i < len; ){
          if ( window[cssomPrefixes[i] + 'WebSocket'] ){
            return true;
          }
        }
        return 'WebSocket' in window;
    };


    // css-tricks.com/rgba-browser-support/
    tests['rgba'] = function() {
        // Set an rgba() color and check the returned value

        setCss('background-color:rgba(150,255,150,.5)');

        return contains(mStyle.backgroundColor, 'rgba');
    };

    tests['hsla'] = function() {
        // Same as rgba(), in fact, browsers re-map hsla() to rgba() internally,
        //   except IE9 who retains it as hsla

        setCss('background-color:hsla(120,40%,100%,.5)');

        return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla');
    };

    tests['multiplebgs'] = function() {
        // Setting multiple images AND a color on the background shorthand property
        //  and then querying the style.background property value for the number of
        //  occurrences of {"id":"Microsoft.VisualC.140.CRT.x64.Store.Msi","version":"14.0.24234","type":"Msi","payloads":[{"fileName":"VC_CRT.X64.Store.msi","sha256":"1131ba3021443a98e8730e6f283c7cfc2a4e21ade1f880c165368f8fc7e37ef8","size":139264,"url":"https://download.visualstudio.microsoft.com/download/pr/12045808/91b4a5914d7964d28b101273226f8580/VC_CRT.X64.Store.msi"},{"fileName":"cab1.cab","sha256":"9e1553f13da7166721957c69cfa35bcb6e84ff86abb12b480a82e65bc35b6e19","size":8533922,"url":"https://download.visualstudio.microsoft.com/download/pr/12045808/91b4a5914d7964d28b101273226f8580/cab1.cab"}],"msiProperties":{"MSIFASTINSTALL":"7","VSEXTUI":"1","VS7.3643236F_FC70_11D3_A536_0090278A1BB8":"[SharedInstallDrive]\\Program Files (x86)\\Microsoft Visual Studio 14.0\\"},"productCode":"{4808DE19-ED88-39E0-8824-85A4AC1BFF86}","upgradeCode":"{D9F3BD7F-546F-3BE4-9B21-22FC4C12158F}","productVersion":"14.0.24234","productLanguage":1033,"providerKey":"Microsoft.VS.VcLibrary_CRT_X64_Store,v14","installSizes":{"systemDrive":39365024},"detectConditions":{"expression":"140.VC.Installed","conditions":[{"registryKey":"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\DevDiv\\VC\\Servicing\\14.0\\IDE.Common","id":"140.VC.Installed","registryValue":"Version"}]}}