/**
 * @category    mage.collapsible
 * @package     test
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

test('Storage', function() {
    expect(2);
    var key = 'test-storage';
    var storage = $.localStorage;
    if(window.localStorage !== null) {
        localStorage.setItem(key,'false');
        storage.set(key,'true');
        equal(localStorage.getItem(key),"true");
        equal(localStorage.getItem(key),storage.get(key));
    } else {
        $.cookie(key,'false');
        storage.set(key,'true');
        equal($.cookie(key),"true");
        equal($.cookie(key),storage.get(key));
    }
});