{"size": 946, "ext": "js", "max_stars_repo_path": "tests/unit/persistence-storage.js", "max_stars_repo_name": "rdworth/webshim", "max_stars_repo_stars_event_min_datetime": "2021-09-19T15:03:50.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-19T15:03:50.000Z", "max_issues_repo_path": "tests/unit/persistence-storage.js", "max_issues_repo_name": "rdworth/webshim", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/unit/persistence-storage.js", "max_forks_repo_name": "rdworth/webshim", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.037037037, "max_line_length": 120, "alphanum_fraction": 0.677589852}
(function($){

module("storage");



asyncTest("json-storage", function(){
	equals(localStorage.getItem('test1'), '', 'localStorage test1 is an empty string');
	
	equals(localStorage.getItem('test2'), 'undefined', 'localStorage test2 is "undefined"');
	
	equals(localStorage.getItem('t!(){}es.t-3'), 'localStorage', 'localStorage t!(){};es.t-3 is "localStorage"');
//	equals(localStorage.length, 3, 'localStorage.length is 3');
	
	if((location.hash || '').indexOf('testsession') !== -1){
		equals(sessionStorage.getItem('test1'), '', 'sessionStorage test1 is an empty string');
		equals(sessionStorage.getItem('test2'), 'undefined', 'sessionStorage: test2 is "undefined"');
		equals(sessionStorage.getItem('t!(){}es.t-3'), 'sessionStorage', 'sessionStorage: t!(){};es.t-3 is "sessionStorage"');
//		equals(sessionStorage.length, 3, 'sessionStorage.length is 3');
	}
	
	$.webshims.ready('json-storage', function(){
		start();
	});
});

})(jQuery);