rem: cloneStore.fetchItemByIdentity({identity:"eg", onItem:onItemClone, onError:onError});  saveCompleteCallback(); 
add: function failed(error, request){ deferred.errback(error); saveFailedCallback(); } newStore.fetchItemByIdentity({identity:"eg", onItem:gotItem, onError:failed}); 
context: 			store._saveEverything = function(saveCompleteCallback, saveFailedCallback, newFileContentString){				var struct = dojo.fromJson(newFileContentString);				doh.assertEqual(struct.identifier, store.getIdentityAttributes(egypt)[0]);				doh.assertEqual(struct.label, store.getLabelAttributes(egypt)[0]);				doh.assertEqual(struct.items.length, 7);								// var cloneStore = tests.data.ItemFileWriteStore.getCountriesStore({data:newFileContentString});				var cloneStore = new dojo.data.ItemFileWriteStore({data:struct});				function onItemClone(itemClone){					var egyptClone = itemClone;					doh.assertEqual(store.getIdentityAttributes(egypt)[0], cloneStore.getIdentityAttributes(egyptClone)[0]);					doh.assertEqual(store.getLabelAttributes(egypt)[0], cloneStore.getLabelAttributes(egyptClone)[0]);					doh.assertEqual(store.getValue(egypt, "name"), cloneStore.getValue(egyptClone, "name"));				}				cloneStore.fetchItemByIdentity({identity:"eg", onItem:onItemClone, onError:onError});								saveCompleteCallback();			};
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/91ce2ddaba03d8a31b5d37c758cdb553f3ec747b/ItemFileWriteStore.js/buggy/tests/data/ItemFileWriteStore.js