OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> | 3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 <script src="../../fast/js/resources/js-test-post-function.js"></script> | 5 <script src="../../fast/js/resources/js-test-post-function.js"></script> |
6 <script src="resources/shared.js"></script> | 6 <script src="resources/shared.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <p id="description"></p> | 9 <p id="description"></p> |
10 <div id="console"></div> | 10 <div id="console"></div> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 shouldBeTrue("'getKey' in indexObject"); | 61 shouldBeTrue("'getKey' in indexObject"); |
62 shouldBeTrue("'get' in indexObject"); | 62 shouldBeTrue("'get' in indexObject"); |
63 | 63 |
64 request = evalAndLog("store.add({x: 'value', y: 'zzz', z: 2.72}, 'key')"); | 64 request = evalAndLog("store.add({x: 'value', y: 'zzz', z: 2.72}, 'key')"); |
65 request.onsuccess = addMore; | 65 request.onsuccess = addMore; |
66 request.onerror = unexpectedErrorCallback; | 66 request.onerror = unexpectedErrorCallback; |
67 } | 67 } |
68 | 68 |
69 function addMore() | 69 function addMore() |
70 { | 70 { |
71 request = evalAndLog("event.target.source.add({x: 'value2', y: 'zzz2', z: 2.
71}, 'key2')"); | 71 request = evalAndLog("event.target.source.add({x: 'value2', y: 'zzz2', z: 2.
71, foobar: 12}, 'key2')"); |
72 request.onsuccess = getData; | 72 request.onsuccess = getData; |
73 request.onerror = unexpectedErrorCallback; | 73 request.onerror = unexpectedErrorCallback; |
74 window.indexObject4 = evalAndLog("store.createIndex('indexWhileAddIsInFlight
', 'x')"); | 74 window.indexObject4 = evalAndLog("store.createIndex('indexWhileAddIsInFlight
', 'x')"); |
| 75 window.indexObject5 = evalAndLog("store.createIndex('indexWithWeirdKeyPath',
'foobar')"); |
75 } | 76 } |
76 | 77 |
77 function getData() | 78 function getData() |
78 { | 79 { |
79 request = evalAndLog("indexObject.getKey('value')"); | 80 request = evalAndLog("indexObject.getKey('value')"); |
80 request.onsuccess = getObjectData; | 81 request.onsuccess = getObjectData; |
81 request.onerror = unexpectedErrorCallback; | 82 request.onerror = unexpectedErrorCallback; |
82 } | 83 } |
83 | 84 |
84 function getObjectData() | 85 function getObjectData() |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 done(); | 228 done(); |
228 } | 229 } |
229 | 230 |
230 test(); | 231 test(); |
231 | 232 |
232 var successfullyParsed = true; | 233 var successfullyParsed = true; |
233 | 234 |
234 </script> | 235 </script> |
235 </body> | 236 </body> |
236 </html> | 237 </html> |
OLD | NEW |