亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readonlyitemfiletesttemplates.js

?? ajax框架原嗎,dojo目前很流行的,希望大家多多學習啊
?? JS
?? 第 1 頁 / 共 5 頁
字號:
if(!dojo._hasResource["tests.data.readOnlyItemFileTestTemplates"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.dojo._hasResource["tests.data.readOnlyItemFileTestTemplates"] = true;dojo.provide("tests.data.readOnlyItemFileTestTemplates");dojo.require("dojo.data.api.Read");dojo.require("dojo.data.api.Identity");dojo.require("dojo.date");dojo.require("dojo.date.stamp");tests.data.readOnlyItemFileTestTemplates.registerTestsForDatastore = function(/* String */ datastoreClassName){	// summary:	//		Given the name of a datastore class to use, this function creates	//		a set of unit tests for that datastore, and registers the new test	//		group with the doh test framework.  The new unit tests are based	//		on a set of "template" unit tests.	var datastoreClass = dojo.getObject(datastoreClassName);	var testTemplates = tests.data.readOnlyItemFileTestTemplates.testTemplates;	var testsForDatastore = [];	var makeNewTestFunction = function(template){		return function(t){return template.runTest(datastoreClass, t);};	};	for(var i = 0; i < testTemplates.length; ++i) {		var testTemplate = testTemplates[i];		var test = {};		test.name = testTemplate.name;		test.runTest = makeNewTestFunction(testTemplate);		testsForDatastore.push(test);	}	var testGroupName = "tests.data.readOnlyItemFileTestTemplates, with datastore " + datastoreClassName;	doh.register(testGroupName, testsForDatastore);};//-----------------------------------------------------// testFile data-setstests.data.readOnlyItemFileTestTemplates.getTestData = function(name){	var data = null;	if(name === "countries"){		if(dojo.isBrowser){			data = {url: dojo.moduleUrl("tests", "data/countries.json").toString() };		}else{			data = {data: { 				identifier:"abbr",				label:"name",				items:[					{abbr:"ec", name:"Ecuador", capital:"Quito"},					{abbr:'eg', name:'Egypt', capital:'Cairo'},					{abbr:'sv', name:'El Salvador', capital:'San Salvador'},					{abbr:'gq', name:'Equatorial Guinea', capital:'Malabo'},					{abbr:'er', name:'Eritrea', capital:'Asmara'},					{abbr:'ee', name:'Estonia', capital:'Tallinn'},					{abbr:'et', name:'Ethiopia', capital:'Addis Ababa'}				]			} };		}		}else if(name === "countries_withNull"){		if(dojo.isBrowser){			data = {url: dojo.moduleUrl("tests", "data/countries_withNull.json").toString() };		}else{			data = {data: { 				identifier:"abbr",				items:[					{abbr:"ec", name:null, capital:"Quito"},					{abbr:'eg', name:null, capital:'Cairo'},					{abbr:'sv', name:'El Salvador', capital:'San Salvador'},					{abbr:'gq', name:'Equatorial Guinea', capital:'Malabo'},					{abbr:'er', name:'Eritrea', capital:'Asmara'},					{abbr:'ee', name:null, capital:'Tallinn'},					{abbr:'et', name:'Ethiopia', capital:'Addis Ababa'}				]			} };		}	}else if(name === "countries_withoutid"){		if(dojo.isBrowser){			data = {url: dojo.moduleUrl("tests", "data/countries_withoutid.json").toString() };		}else{			data = {data: { 				label: "name",				items:[					{abbr:"ec", name:null, capital:"Quito"},					{abbr:'eg', name:null, capital:'Cairo'},					{abbr:'sv', name:'El Salvador', capital:'San Salvador'},					{abbr:'gq', name:'Equatorial Guinea', capital:'Malabo'},					{abbr:'er', name:'Eritrea', capital:'Asmara'},					{abbr:'ee', name:null, capital:'Tallinn'},					{abbr:'et', name:'Ethiopia', capital:'Addis Ababa'}				]			} };		}	}else if (name === "countries_withBoolean"){		if(dojo.isBrowser){			data = {url: dojo.moduleUrl("tests", "data/countries_withBoolean.json").toString() };		}else{			data = {data: { 				identifier:"abbr",				items:[					{abbr:"ec", name:"Ecuador", capital:"Quito", real:true},					{abbr:'eg', name:'Egypt', capital:'Cairo', real:true},					{abbr:'sv', name:'El Salvador', capital:'San Salvador', real:true},					{abbr:'gq', name:'Equatorial Guinea', capital:'Malabo', real:true},					{abbr:'er', name:'Eritrea', capital:'Asmara', real:true},					{abbr:'ee', name:'Estonia', capital:'Tallinn', real:true},					{abbr:'et', name:'Ethiopia', capital:'Addis Ababa', real:true},					{abbr:'ut', name:'Utopia', capital:'Paradise', real:false}				]			} };		}	}else if (name === "countries_withDates"){		if(dojo.isBrowser){			data = {url: dojo.moduleUrl("tests", "data/countries_withDates.json").toString() };		}else{			data = {data: { 				identifier:"abbr",				items:[					{abbr:"ec", name:"Ecuador", capital:"Quito"},					{abbr:'eg', name:'Egypt', capital:'Cairo'},					{abbr:'sv', name:'El Salvador', capital:'San Salvador'},					{abbr:'gq', name:'Equatorial Guinea', capital:'Malabo'},					{abbr:'er', name:'Eritrea', capital:'Asmara', independence:{_type:'Date', _value:"1993-05-24T00:00:00Z"}}, // May 24, 1993,					{abbr:'ee', name:'Estonia', capital:'Tallinn', independence:{_type:'Date', _value:"1991-08-20T00:00:00Z"}}, // August 20, 1991					{abbr:'et', name:'Ethiopia', capital:'Addis Ababa'}				]			} };		}	}else if (name === "geography_hierarchy_small"){		if(dojo.isBrowser){			data = {url: dojo.moduleUrl("tests", "data/geography_hierarchy_small.json").toString() };		}else{			data = {data: { 				items:[					{ name:'Africa', countries:[						{ name:'Egypt', capital:'Cairo' },						{ name:'Kenya', capital:'Nairobi' },						{ name:'Sudan', capital:'Khartoum' }]},					{ name:'Australia', capital:'Canberra' },					{ name:'North America', countries:[						{ name:'Canada', population:'33 million', cities:[							{ name:'Toronto', population:'2.5 million' },							{ name:'Alberta', population:'1 million' }							]},						{ name: 'United States of America', capital: 'Washington DC', states:[							{ name: 'Missouri'},							{ name: 'Arkansas'}							]}						]}				]			}};		}	}else if (name === "data_multitype"){		if(dojo.isBrowser){			data = {url: dojo.moduleUrl("tests", "data/data_multitype.json").toString() };		}else{			data = {data: { 							"identifier": "count",							"label": "count", 							items: [								{ count: 1,    value: "true" },								{ count: 2,    value: true   },								{ count: 3,    value: "false"},								{ count: 4,    value: false  },								{ count: 5,    value: true   },								{ count: 6,    value: true   },								{ count: 7,    value: "true" },								{ count: 8,    value: "true" },								{ count: 9,    value: "false"},								{ count: 10,   value: false  },								{ count: 11,   value: [false, false]},								{ count: "12", value: [false, "true"]}						   ]						} 					};		}	}	return data;};//-----------------------------------------------------// testTemplatestests.data.readOnlyItemFileTestTemplates.testTemplates = [	{		name: "Identity API: fetchItemByIdentity()",		runTest: function(datastore, t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries"));			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item !== null);				if(item !== null){					var name = store.getValue(item,"name");					t.assertEqual(name, "El Salvador");				}				d.callback(true);			}			function onError(errData){				t.assertTrue(false);				d.errback(errData);			}			store.fetchItemByIdentity({identity: "sv", onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Identity API: fetchItemByIdentity() notFound", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			//	description:			//		Simple test of the fetchItemByIdentity function of the store.			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries"));			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item === null);				d.callback(true);			}			function onError(errData){				t.assertTrue(false);				d.errback(errData);			}			store.fetchItemByIdentity({identity: "sv_not", onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Identity API: getIdentityAttributes()", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of the getIdentityAttributes function.			//	description:			//		Simple test of the getIdentityAttributes function.			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries"));			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item !== null)				var identifiers = store.getIdentityAttributes(item);				t.assertTrue(dojo.isArray(identifiers));				t.assertEqual(1, identifiers.length);				t.assertEqual("abbr", identifiers[0]);				d.callback(true);			}			function onError(errData){				t.assertTrue(false);				d.errback(errData);			}			store.fetchItemByIdentity({identity: "sv", onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Identity API: fetchItemByIdentity() commentFilteredJson", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			//	description:			//		Simple test of the fetchItemByIdentity function of the store.			//		This tests loading a comment-filtered json file so that people using secure			//		data with this store can bypass the JavaSceipt hijack noted in Fortify's			//		paper.			if(dojo.isBrowser){                var store = new datastore({url: dojo.moduleUrl("tests", "data/countries_commentFiltered.json").toString()});				var d = new doh.Deferred();				function onItem(item){					t.assertTrue(item !== null);					var name = store.getValue(item,"name");					t.assertEqual(name, "El Salvador");					d.callback(true);				}				function onError(errData){					t.assertTrue(false);					d.errback(errData);				}				store.fetchItemByIdentity({identity: "sv", onItem: onItem, onError: onError});				return d; // Deferred			}		}	},	{		name: "Identity API: fetchItemByIdentity() nullValue", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store, checling a null value.			//	description:			//		Simple test of the fetchItemByIdentity function of the store, checking a null value.			//		This tests handling attributes in json that were defined as null properly.			//		Introduced because of tracker: #3153			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries_withNull"));			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item !== null);				var name = store.getValue(item,"name");				t.assertEqual(name, null);				d.callback(true);			}			function onError(errData){				t.assertTrue(false);				d.errback(errData);			}			store.fetchItemByIdentity({identity: "ec", onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Identity API: fetchItemByIdentity() booleanValue", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store, checking a boolean value.			//	description:			//		Simple test of the fetchItemByIdentity function of the store, checking a boolean value.			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries_withBoolean"));			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item !== null);				var name = store.getValue(item,"name");				t.assertEqual(name, "Utopia");				var real = store.getValue(item,"real");				t.assertEqual(real, false);				d.callback(true);			}			function onError(errData){				t.assertTrue(false);				d.errback(errData);			}			store.fetchItemByIdentity({identity: "ut", onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Identity API: fetchItemByIdentity() withoutSpecifiedIdInData", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of bug #4691, looking up something by assigned id, not one specified in the JSON data.			//	description:			//		Simple test of bug #4691, looking up something by assigned id, not one specified in the JSON data.			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries_withoutid"));			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item !== null);				var name = store.getValue(item,"name");				t.assertEqual(name, "El Salvador");				d.callback(true);			}			function onError(errData){				t.assertTrue(false);				d.errback(errData);			}			store.fetchItemByIdentity({identity: "2", onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Identity API: getIdentity()", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of the getIdentity function of the store.			//	description:			//		Simple test of the getIdentity function of the store.			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries"));			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item !== null);				t.assertTrue(store.getIdentity(item) === "sv");				d.callback(true);			}			function onError(errData){				t.assertTrue(false);				d.errback(errData);			}			store.fetchItemByIdentity({identity: "sv", onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Identity API: getIdentity() withoutSpecifiedId", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of the #4691 bug			//	description:			//		Simple test of the #4691 bug			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries_withoutid"));			var d = new doh.Deferred();			function onItem(item, request){				t.assertTrue(item !== null);				t.assertTrue(store.getIdentity(item) === 2);				d.callback(true);			}			function onError(errData, request){				t.assertTrue(false);				d.errback(errData);			}			store.fetch({ query:{abbr: "sv"}, onItem: onItem, onError: onError});			return d; // Deferred		}	},	{		name: "Read API: fetch() all", 		runTest: function(datastore, t){			//	summary: 			//		Simple test of a basic fetch on ItemFileReadStore.			//	description:			//		Simple test of a basic fetch on ItemFileReadStore.			var store = new datastore(tests.data.readOnlyItemFileTestTemplates.getTestData("countries"));						var d = new doh.Deferred();			function completedAll(items, request){				t.is(7, items.length);				d.callback(true);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产3级a| 亚洲国产乱码最新视频| 亚洲黄一区二区三区| 精品一区二区三区免费观看| 色综合天天性综合| 精品免费日韩av| 成人欧美一区二区三区| 国产精品一区二区果冻传媒| 欧美老女人第四色| 最新国产精品久久精品| 国产一区二区三区四区在线观看| 色综合天天综合网天天狠天天| 久久久影视传媒| 麻豆精品在线视频| 91精品国产欧美日韩| 亚洲国产成人91porn| eeuss国产一区二区三区| 精品成人一区二区三区| 国产高清在线精品| 欧美日韩成人综合| 亚洲国产精品精华液网站| 91在线国产福利| 欧美精品一区二区蜜臀亚洲| 精品三级在线看| 丁香桃色午夜亚洲一区二区三区| 色88888久久久久久影院野外| 欧美一区二区三区性视频| 一区二区久久久久| 91亚洲精品乱码久久久久久蜜桃| 国产精品嫩草影院av蜜臀| 国产东北露脸精品视频| 欧美激情综合五月色丁香| 国产精品一二三| 久久人人超碰精品| 久久草av在线| 久久精品夜色噜噜亚洲aⅴ| 国产乱人伦偷精品视频不卡| 久久夜色精品国产噜噜av| 狠狠色丁香九九婷婷综合五月| 欧美一区二区三区白人| 喷白浆一区二区| 精品久久久久99| 丰满白嫩尤物一区二区| 中文字幕在线播放不卡一区| 99久久夜色精品国产网站| 亚洲精选免费视频| 欧美日韩高清一区二区| 精品一区二区影视| 国产精品天美传媒沈樵| 91搞黄在线观看| 毛片av一区二区三区| 久久久另类综合| 97se亚洲国产综合自在线不卡| 亚洲五码中文字幕| 精品久久一二三区| 91理论电影在线观看| 亚洲国产日日夜夜| 精品三级在线看| 91老师片黄在线观看| 秋霞电影网一区二区| 中文字幕色av一区二区三区| 久久影院视频免费| 99天天综合性| 日韩激情av在线| 国产欧美精品一区aⅴ影院| 91色在线porny| 美国欧美日韩国产在线播放| 国产精品欧美久久久久无广告| 欧美日韩精品专区| 国产专区综合网| 亚洲一区二区免费视频| 久久精品一区二区三区四区| 欧美手机在线视频| 国产成人精品一区二| 日韩中文字幕麻豆| 国产精品久久久久久久久免费桃花 | 在线播放91灌醉迷j高跟美女| 国产最新精品精品你懂的| 亚洲精品日韩一| 久久久久久亚洲综合影院红桃| 91麻豆123| 懂色av中文一区二区三区| 视频一区在线视频| 亚洲欧美福利一区二区| 久久女同互慰一区二区三区| 欧美日韩一区二区在线观看| av欧美精品.com| 国产激情视频一区二区在线观看 | 欧美日韩日本视频| 粉嫩久久99精品久久久久久夜| 日韩精品91亚洲二区在线观看| 国产精品视频线看| 久久美女高清视频| 日韩网站在线看片你懂的| 欧美成人性战久久| 欧美日韩国产一二三| 色婷婷激情综合| 91蝌蚪porny九色| 成人精品视频网站| 国产乱对白刺激视频不卡| 久久国产精品99久久人人澡| 亚洲一区二区免费视频| 一区二区三区在线播放| 亚洲另类春色校园小说| 最新日韩av在线| 中文字幕一区三区| 中文字幕国产精品一区二区| 国产欧美日韩不卡| 久久精品一区二区三区四区| 精品盗摄一区二区三区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 日韩电影网1区2区| 爽爽淫人综合网网站| 亚洲国产毛片aaaaa无费看 | 亚洲视频资源在线| 国产精品久久久久桃色tv| 国产精品视频看| √…a在线天堂一区| 亚洲毛片av在线| 亚洲乱码国产乱码精品精小说| 亚洲女性喷水在线观看一区| 亚洲欧美日韩一区| 偷窥国产亚洲免费视频| 麻豆一区二区99久久久久| 国产一区啦啦啦在线观看| 国产高清一区日本| 91伊人久久大香线蕉| 欧美自拍偷拍一区| 日韩欧美中文字幕制服| 久久综合色一综合色88| 国产午夜精品一区二区三区视频| 国产精品视频麻豆| 亚洲成人免费影院| 精品一区二区三区视频在线观看| 国产伦精品一区二区三区免费迷 | 欧美大片拔萝卜| 国产亚洲成年网址在线观看| 国产精品国产精品国产专区不蜜| 亚洲男人的天堂在线aⅴ视频| 一区二区三区在线观看国产| 三级不卡在线观看| 国产成人小视频| 精品视频全国免费看| 日韩一区二区三区观看| 国产欧美日韩中文久久| 亚洲激情av在线| 久久国产生活片100| 91一区二区三区在线观看| 欧美一区二区视频在线观看2022| 欧美国产97人人爽人人喊| 亚洲成a人片在线不卡一二三区| 美美哒免费高清在线观看视频一区二区 | 色欧美片视频在线观看| 欧美一区二区三区四区视频| 中文字幕巨乱亚洲| 日韩高清不卡在线| 99在线热播精品免费| 欧美变态tickle挠乳网站| 综合色天天鬼久久鬼色| 国产呦萝稀缺另类资源| 在线观看国产日韩| 久久精品人人做人人爽人人| 亚洲v精品v日韩v欧美v专区 | 国产精品久久夜| 免费高清视频精品| 91久久精品一区二区| 国产欧美日韩精品一区| 久久精品久久精品| 欧美专区在线观看一区| 国产精品私人自拍| 狠狠色狠狠色合久久伊人| 欧美片在线播放| 樱桃视频在线观看一区| 粉嫩13p一区二区三区| 日韩你懂的在线观看| 一区二区成人在线视频| 成人蜜臀av电影| 精品久久五月天| 免费高清视频精品| 在线不卡的av| 天天操天天色综合| 欧美性受xxxx黑人xyx性爽| 亚洲品质自拍视频| 成人一区二区三区中文字幕| 精品欧美一区二区在线观看| 亚洲h在线观看| 欧美性受xxxx黑人xyx| 亚洲精品免费播放| 色综合视频在线观看| 日韩理论片在线| 色综合久久88色综合天天免费| 中文字幕在线不卡视频| 99免费精品在线观看| 国产精品久久久久天堂| 97se亚洲国产综合自在线| 中文字幕中文乱码欧美一区二区| 高潮精品一区videoshd| 国产精品全国免费观看高清| 国产99久久久国产精品潘金网站| 国产午夜精品美女毛片视频|