Debian Codegraph @

dojox/data/tests/stores/HtmlTableStore.js

raw symbols SCIP
1 dojo.provide("dojox.data.tests.stores.HtmlTableStore");
2 dojo.require("dojox.data.HtmlTableStore");
3 dojo.require("dojo.data.api.Read");
4 dojo.require("dojo.data.api.Identity");
5
6
7 dojox.data.tests.stores.HtmlTableStore.getBooks2Store = function(){
8 return new dojox.data.HtmlTableStore({url: require.toUrl("dojox/data/tests/stores/books2.html").toString(), tableId: "books2"});
9 };
10
11 dojox.data.tests.stores.HtmlTableStore.getBooksStore = function(){
12 return new dojox.data.HtmlTableStore({url: require.toUrl("dojox/data/tests/stores/books.html").toString(), tableId: "books"});
13 };
14
15 doh.register("dojox.data.tests.stores.HtmlTableStore",
16 [
17 /***************************************
18 dojo.data.api.Read API
19 ***************************************/
20 function testReadAPI_fetch_all(t){
21 // summary:
22 // Simple test of fetching all xml items through an XML element called isbn
23 // description:
24 // Simple test of fetching all xml items through an XML element called isbn
25 var store = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
26
27 var d = new doh.Deferred();
28 function onComplete(items, request) {
29 t.assertEqual(20, items.length);
30 d.callback(true);
31 }
32 function onError(error, request) {
33 d.errback(error);
34 }
35 store.fetch({query:{isbn:"*"}, onComplete: onComplete, onError: onError});
36 return d; //Object
37 },
38 function testReadAPI_fetch_one(t){
39 // summary:
40 // Simple test of fetching one xml items through an XML element called isbn
41 // description:
42 // Simple test of fetching one xml items through an XML element called isbn
43 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
44
45 var d = new doh.Deferred();
46 function onComplete(items, request) {
47 t.assertEqual(1, items.length);
48 d.callback(true);
49 }
50 function onError(error, request) {
51 d.errback(error);
52 }
53 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
54 return d; //Object
55 },
56 function testReadAPI_fetch_paging(t){
57 // summary:
58 // Simple test of fetching one xml items through an XML element called isbn
59 // description:
60 // Simple test of fetching one xml items through an XML element called isbn
61 var store = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
62
63 var d = new doh.Deferred();
64 function dumpFirstFetch(items, request){
65 t.assertEqual(5, items.length);
66 request.start = 3;
67 request.count = 1;
68 request.onComplete = dumpSecondFetch;
69 store.fetch(request);
70 }
71
72 function dumpSecondFetch(items, request){
73 t.assertEqual(1, items.length);
74 request.start = 0;
75 request.count = 5;
76 request.onComplete = dumpThirdFetch;
77 store.fetch(request);
78 }
79
80 function dumpThirdFetch(items, request){
81 t.assertEqual(5, items.length);
82 request.start = 2;
83 request.count = 20;
84 request.onComplete = dumpFourthFetch;
85 store.fetch(request);
86 }
87
88 function dumpFourthFetch(items, request){
89 t.assertEqual(18, items.length);
90 request.start = 9;
91 request.count = 100;
92 request.onComplete = dumpFifthFetch;
93 store.fetch(request);
94 }
95
96 function dumpFifthFetch(items, request){
97 t.assertEqual(11, items.length);
98 request.start = 2;
99 request.count = 20;
100 request.onComplete = dumpSixthFetch;
101 store.fetch(request);
102 }
103
104 function dumpSixthFetch(items, request){
105 t.assertEqual(18, items.length);
106 d.callback(true);
107 }
108
109 function completed(items, request){
110 t.assertEqual(20, items.length);
111 request.start = 1;
112 request.count = 5;
113 request.onComplete = dumpFirstFetch;
114 store.fetch(request);
115 }
116
117 function error(errData, request){
118 d.errback(errData);
119 }
120
121 store.fetch({onComplete: completed, onError: error});
122 return d; //Object
123 },
124 function testReadAPI_fetch_pattern0(t){
125 // summary:
126 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match
127 // description:
128 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match
129 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
130 var d = new doh.Deferred();
131 function onComplete(items, request) {
132 t.assertEqual(1, items.length);
133 d.callback(true);
134 }
135 function onError(error, request) {
136 d.errback(error);
137 }
138 store.fetch({query:{isbn:"?9B574"}, onComplete: onComplete, onError: onError});
139 return d; //Object
140 },
141 function testReadAPI_fetch_pattern1(t){
142 // summary:
143 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match
144 // description:
145 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match
146 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
147 var d = new doh.Deferred();
148 function onComplete(items, request) {
149 t.assertEqual(4, items.length);
150 d.callback(true);
151 }
152 function onError(error, request) {
153 d.errback(error);
154 }
155 store.fetch({query:{isbn:"A9B57?"}, onComplete: onComplete, onError: onError});
156 return d; //Object
157 },
158 function testReadAPI_fetch_pattern2(t){
159 // summary:
160 // Simple test of fetching one xml items through an XML element called isbn with * pattern match
161 // description:
162 // Simple test of fetching one xml items through an XML element called isbn with * pattern match
163 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
164 var d = new doh.Deferred();
165 function onComplete(items, request) {
166 t.assertEqual(5, items.length);
167 d.callback(true);
168 }
169 function onError(error, request) {
170 d.errback(error);
171 }
172 store.fetch({query:{isbn:"A9*"}, onComplete: onComplete, onError: onError});
173 return d; //Object
174 },
175 function testReadAPI_fetch_pattern_caseInsensitive(t){
176 // summary:
177 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match and in case insensitive mode.
178 // description:
179 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match and in case insensitive mode.
180 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
181 var d = new doh.Deferred();
182 function onComplete(items, request) {
183 t.assertEqual(1, items.length);
184 d.callback(true);
185 }
186 function onError(error, request) {
187 d.errback(error);
188 }
189 store.fetch({query:{isbn:"?9b574"}, queryOptions: {ignoreCase: true}, onComplete: onComplete, onError: onError});
190 return d; //Object
191 },
192 function testReadAPI_fetch_pattern_caseSensitive(t){
193 // summary:
194 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match and in case sensitive mode.
195 // description:
196 // Simple test of fetching one xml items through an XML element called isbn with ? pattern match and in case sensitive mode.
197 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
198 var d = new doh.Deferred();
199 function onComplete(items, request) {
200 t.assertEqual(1, items.length);
201 d.callback(true);
202 }
203 function onError(error, request) {
204 d.errback(error);
205 }
206 store.fetch({query:{isbn:"?9B574"}, queryOptions: {ignoreCase: false}, onComplete: onComplete, onError: onError});
207 return d; //Object
208 },
209 function testReadAPI_getLabel(t){
210 // summary:
211 // Simple test of the getLabel function against a store set that has a label defined.
212 // description:
213 // Simple test of the getLabel function against a store set that has a label defined.
214
215 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
216
217 var d = new doh.Deferred();
218 function onComplete(items, request){
219 t.assertEqual(items.length, 1);
220 var label = store.getLabel(items[0]);
221 t.assertTrue(label !== null);
222 t.assertEqual("Table Row #3", label);
223 d.callback(true);
224 }
225 function onError(error, request) {
226 d.errback(error);
227 }
228 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
229 return d;
230 },
231 function testReadAPI_getLabelAttributes(t){
232 // summary:
233 // Simple test of the getLabelAttributes function against a store set that has a label defined.
234 // description:
235 // Simple test of the getLabelAttributes function against a store set that has a label defined.
236
237 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
238
239 var d = new doh.Deferred();
240 function onComplete(items, request){
241 t.assertEqual(items.length, 1);
242 var labelList = store.getLabelAttributes(items[0]);
243 t.assertTrue(labelList === null);
244 d.callback(true);
245 }
246 function onError(error, request) {
247 d.errback(error);
248 }
249 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
250 return d;
251 },
252
253 function testReadAPI_getValue(t){
254 // summary:
255 // Simple test of the getValue API
256 // description:
257 // Simple test of the getValue API
258 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
259
260 var d = new doh.Deferred();
261 function onComplete(items, request) {
262 t.assertEqual(1, items.length);
263 var item = items[0];
264 t.assertTrue(store.hasAttribute(item,"isbn"));
265 t.assertEqual(store.getValue(item,"isbn"), "A9B574");
266 d.callback(true);
267 }
268 function onError(error, request) {
269 d.errback(error);
270 }
271 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
272 return d; //Object
273 },
274 function testReadAPI_getValues(t){
275 // summary:
276 // Simple test of the getValues API
277 // description:
278 // Simple test of the getValues API
279 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
280
281 var d = new doh.Deferred();
282 function onComplete(items, request) {
283 t.assertEqual(1, items.length);
284 var item = items[0];
285 t.assertTrue(store.hasAttribute(item,"isbn"));
286 var values = store.getValues(item,"isbn");
287 t.assertEqual(1,values.length);
288 t.assertEqual("A9B574", values[0]);
289 d.callback(true);
290 }
291 function onError(error, request) {
292 d.errback(error);
293 }
294 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
295 return d; //Object
296 },
297 function testReadAPI_isItem(t){
298 // summary:
299 // Simple test of the isItem API
300 // description:
301 // Simple test of the isItem API
302 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
303
304 var d = new doh.Deferred();
305 function onComplete(items, request) {
306 t.assertEqual(1, items.length);
307 var item = items[0];
308 t.assertTrue(store.isItem(item));
309 t.assertTrue(!store.isItem({}));
310 t.assertTrue(!store.isItem("Foo"));
311 t.assertTrue(!store.isItem(1));
312 d.callback(true);
313 }
314 function onError(error, request) {
315 d.errback(error);
316 }
317 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
318 return d; //Object
319 },
320 function testReadAPI_isItem_multistore(t){
321 // summary:
322 // Simple test of the isItem API across multiple store instances.
323 // description:
324 // Simple test of the isItem API across multiple store instances.
325 var store1 = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
326 var store2 = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
327
328 var d = new doh.Deferred();
329 function onComplete1(items, request) {
330 t.assertEqual(1, items.length);
331 var item1 = items[0];
332 t.assertTrue(store1.isItem(item1));
333
334 function onComplete2(items, request) {
335 t.assertEqual(1, items.length);
336 var item2 = items[0];
337 t.assertTrue(store2.isItem(item2));
338 t.assertTrue(!store1.isItem(item2));
339 t.assertTrue(!store2.isItem(item1));
340 d.callback(true);
341 }
342 store2.fetch({query:{isbn:"A9B574"}, onComplete: onComplete2, onError: onError});
343 }
344 function onError(error, request) {
345 d.errback(error);
346 }
347 store1.fetch({query:{isbn:"1"}, onComplete: onComplete1, onError: onError});
348 return d; //Object
349 },
350 function testReadAPI_hasAttribute(t){
351 // summary:
352 // Simple test of the hasAttribute API
353 // description:
354 // Simple test of the hasAttribute API
355 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
356
357 var d = new doh.Deferred();
358 function onComplete(items, request) {
359 t.assertEqual(1, items.length);
360 var item = items[0];
361 t.assertTrue(store.hasAttribute(item,"isbn"));
362 t.assertTrue(!store.hasAttribute(item,"bob"));
363 d.callback(true);
364 }
365 function onError(error, request) {
366 d.errback(error);
367 }
368 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
369 return d; //Object
370 },
371 function testReadAPI_containsValue(t){
372 // summary:
373 // Simple test of the containsValue API
374 // description:
375 // Simple test of the containsValue API
376 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
377
378 var d = new doh.Deferred();
379 function onComplete(items, request) {
380 t.assertEqual(1, items.length);
381 var item = items[0];
382 t.assertTrue(store.containsValue(item,"isbn", "A9B574"));
383 t.assertTrue(!store.containsValue(item,"isbn", "bob"));
384 d.callback(true);
385 }
386 function onError(error, request) {
387 d.errback(error);
388 }
389 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
390 return d; //Object
391 },
392 function testReadAPI_sortDescending(t){
393 // summary:
394 // Simple test of the sorting API in descending order.
395 // description:
396 // Simple test of the sorting API in descending order.
397 var store = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
398
399 //Comparison is done as a string type (toString comparison), so the order won't be numeric
400 //So have to compare in 'alphabetic' order.
401 var order = [9,8,7,6,5,4,3,20,2,19,18,17,16,15,14,13,12,11,10,1];
402
403 var d = new doh.Deferred();
404 function onComplete(items, request) {
405 t.assertEqual(20, items.length);
406
407 for(var i = 0; i < items.length; i++){
408 t.assertEqual(order[i], store.getValue(items[i],"isbn").toString());
409 }
410 d.callback(true);
411 }
412 function onError(error, request) {
413 d.errback(error);
414 }
415
416 var sortAttributes = [{attribute: "isbn", descending: true}];
417 store.fetch({query:{isbn:"*"}, sort: sortAttributes, onComplete: onComplete, onError: onError});
418 return d; //Object
419 },
420 function testReadAPI_sortAscending(t){
421 // summary:
422 // Simple test of the sorting API in ascending order.
423 // description:
424 // Simple test of the sorting API in ascending order.
425 var store = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
426
427 //Comparison is done as a string type (toString comparison), so the order won't be numeric
428 //So have to compare in 'alphabetic' order.
429 var order = [1,10,11,12,13,14,15,16,17,18,19,2,20,3,4,5,6,7,8,9];
430
431 var d = new doh.Deferred();
432 function onComplete(items, request) {
433 t.assertEqual(20, items.length);
434 var itemId = 1;
435 for(var i = 0; i < items.length; i++){
436 t.assertEqual(order[i], store.getValue(items[i],"isbn").toString());
437 }
438 d.callback(true);
439 }
440 function onError(error, request) {
441 d.errback(error);
442 }
443
444 var sortAttributes = [{attribute: "isbn"}];
445 store.fetch({query:{isbn:"*"}, sort: sortAttributes, onComplete: onComplete, onError: onError});
446 return d; //Object
447 },
448 function testReadAPI_sortDescendingNumeric(t){
449 // summary:
450 // Simple test of the sorting API in descending order using a numeric comparator.
451 // description:
452 // Simple test of the sorting API in descending order using a numeric comparator.
453 var store = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
454
455 //isbn should be treated as a numeric, not as a string comparison
456 store.comparatorMap = {};
457 store.comparatorMap["isbn"] = function(a, b){
458 var ret = 0;
459 if(parseInt(a.toString()) > parseInt(b.toString())){
460 ret = 1;
461 }else if(parseInt(a.toString()) < parseInt(b.toString())){
462 ret = -1;
463 }
464 return ret; //int, {-1,0,1}
465 };
466
467 var d = new doh.Deferred();
468 function onComplete(items, request) {
469 t.assertEqual(20, items.length);
470 var itemId = 20;
471 for(var i = 0; i < items.length; i++){
472 t.assertEqual(itemId, store.getValue(items[i],"isbn").toString());
473 itemId--;
474 }
475 d.callback(true);
476 }
477 function onError(error, request) {
478 d.errback(error);
479 }
480
481 var sortAttributes = [{attribute: "isbn", descending: true}];
482 store.fetch({query:{isbn:"*"}, sort: sortAttributes, onComplete: onComplete, onError: onError});
483 return d; //Object
484 },
485 function testReadAPI_sortAscendingNumeric(t){
486 // summary:
487 // Simple test of the sorting API in ascending order using a numeric comparator.
488 // description:
489 // Simple test of the sorting API in ascending order using a numeric comparator.
490 var store = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
491
492 //isbn should be treated as a numeric, not as a string comparison
493 store.comparatorMap = {};
494 store.comparatorMap["isbn"] = function(a, b){
495 var ret = 0;
496 if(parseInt(a.toString()) > parseInt(b.toString())){
497 ret = 1;
498 }else if(parseInt(a.toString()) < parseInt(b.toString())){
499 ret = -1;
500 }
501 return ret; //int, {-1,0,1}
502 };
503
504 var d = new doh.Deferred();
505 function onComplete(items, request) {
506 t.assertEqual(20, items.length);
507 var itemId = 1;
508 for(var i = 0; i < items.length; i++){
509 t.assertEqual(itemId, store.getValue(items[i],"isbn").toString());
510 itemId++;
511 }
512 d.callback(true);
513 }
514 function onError(error, request) {
515 d.errback(error);
516 }
517
518 var sortAttributes = [{attribute: "isbn"}];
519 store.fetch({query:{isbn:"*"}, sort: sortAttributes, onComplete: onComplete, onError: onError});
520 return d; //Object
521 },
522 function testReadAPI_isItemLoaded(t){
523 // summary:
524 // Simple test of the isItemLoaded API
525 // description:
526 // Simple test of the isItemLoaded API
527 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
528
529 var d = new doh.Deferred();
530 function onComplete(items, request) {
531 t.assertEqual(1, items.length);
532 var item = items[0];
533 t.assertTrue(store.isItemLoaded(item));
534 d.callback(true);
535 }
536 function onError(error, request) {
537 d.errback(error);
538 }
539 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
540 return d; //Object
541 },
542 function testReadAPI_getFeatures(t){
543 // summary:
544 // Simple test of the getFeatures function of the store
545 // description:
546 // Simple test of the getFeatures function of the store
547
548 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
549 var features = store.getFeatures();
550 var count = 0;
551 for(i in features){
552 t.assertTrue((i === "dojo.data.api.Read" || i === "dojo.data.api.Identity"));
553 count++;
554 }
555 t.assertEqual(2, count);
556 },
557 function testReadAPI_getAttributes(t){
558 // summary:
559 // Simple test of the getAttributes API
560 // description:
561 // Simple test of the getAttributes API
562 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
563
564 var d = new doh.Deferred();
565 function onComplete(items, request) {
566 t.assertEqual(1, items.length);
567 var item = items[0];
568 var attributes = store.getAttributes(item);
569 t.assertEqual(3,attributes.length);
570 for(var i=0; i<attributes.length; i++){
571 t.assertTrue((attributes[i] === "isbn" || attributes[i] === "title" || attributes[i] === "author"));
572 }
573 d.callback(true);
574 }
575 function onError(error, request) {
576 d.errback(error);
577 }
578 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
579 return d; //Object
580 },
581 function testReadAPI_functionConformance(t){
582 // summary:
583 // Simple test read API conformance. Checks to see all declared functions are actual functions on the instances.
584 // description:
585 // Simple test read API conformance. Checks to see all declared functions are actual functions on the instances.
586
587 var testStore = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
588 var readApi = new dojo.data.api.Read();
589 var passed = true;
590
591 for(i in readApi){
592 var member = readApi[i];
593 //Check that all the 'Read' defined functions exist on the test store.
594 if(typeof member === "function"){
595 var testStoreMember = testStore[i];
596 if(!(typeof testStoreMember === "function")){
597 console.log("Problem with function: [" + i + "]");
598 passed = false;
599 break;
600 }
601 }
602 }
603 t.assertTrue(passed);
604 },
605 /***************************************
606 dojo.data.api.Identity API
607 ***************************************/
608 function testIdentityAPI_getIdentity(t){
609 // summary:
610 // Simple test of the getAttributes API
611 // description:
612 // Simple test of the getAttributes API
613 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
614
615 var d = new doh.Deferred();
616 function onComplete(items, request) {
617 t.assertEqual(1, items.length);
618 var item = items[0];
619 t.assertEqual(3,store.getIdentity(item));
620 d.callback(true);
621 }
622 function onError(error, request) {
623 d.errback(error);
624 }
625 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
626 return d; //Object
627 },
628 function testIdentityAPI_getIdentityAttributes(t){
629 // summary:
630 // Simple test of the getAttributes API
631 // description:
632 // Simple test of the getAttributes API
633 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
634
635 var d = new doh.Deferred();
636 function onComplete(items, request) {
637 t.assertEqual(1, items.length);
638 var item = items[0];
639 //Should have none, as it's not a public attribute.
640 var attributes = store.getIdentityAttributes(item);
641 t.assertEqual(null, attributes);
642 d.callback(true);
643 }
644 function onError(error, request) {
645 d.errback(error);
646 }
647 store.fetch({query:{isbn:"A9B574"}, onComplete: onComplete, onError: onError});
648 return d; //Object
649 },
650 function testIdentityAPI_fetchItemByIdentity(t){
651 // summary:
652 // Simple test of the fetchItemByIdentity API
653 // description:
654 // Simple test of the fetchItemByIdentity API
655 var store = dojox.data.tests.stores.HtmlTableStore.getBooks2Store();
656
657 var d = new doh.Deferred();
658 function onItem(item, request) {
659 t.assertTrue(item !== null);
660 t.assertTrue(store.isItem(item));
661 t.assertEqual("A9B574", store.getValue(item, "isbn"));
662 d.callback(true);
663 }
664 function onError(error, request) {
665 d.errback(error);
666 }
667 store.fetchItemByIdentity({identity: 3, onItem: onItem, onError: onError});
668 return d; //Object
669 },
670 function testIdentityAPI_functionConformance(t){
671 // summary:
672 // Simple test identity API conformance. Checks to see all declared functions are actual functions on the instances.
673 // description:
674 // Simple test identity API conformance. Checks to see all declared functions are actual functions on the instances.
675
676 var testStore = dojox.data.tests.stores.HtmlTableStore.getBooksStore();
677 var identityApi = new dojo.data.api.Identity();
678 var passed = true;
679
680 for(i in identityApi){
681 var member = identityApi[i];
682 //Check that all the 'Read' defined functions exist on the test store.
683 if(typeof member === "function"){
684 var testStoreMember = testStore[i];
685 if(!(typeof testStoreMember === "function")){
686 console.log("Problem with function: [" + i + "]");
687 passed = false;
688 break;
689 }
690 }
691 }
692 t.assertTrue(passed);
693 }
694 ]
695 );
696
697 //Register the remote tests ... when they work.
698 //doh.registerUrl("dojox.data.tests.stores.HtmlTableStore.remote", dojo.moduleUrl("dojox.data.tests", "ml/test_HtmlTableStore_declaratively.html"));