| OLD | NEW |
| 1 // original test: | 1 // original test: |
| 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_object_ident
ity.html?force=1 | 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_object_ident
ity.html?force=1 |
| 3 // license of original test: | 3 // license of original test: |
| 4 // " Any copyright is dedicated to the Public Domain. | 4 // " Any copyright is dedicated to the Public Domain. |
| 5 // http://creativecommons.org/publicdomain/zero/1.0/ " | 5 // http://creativecommons.org/publicdomain/zero/1.0/ " |
| 6 | 6 |
| 7 if (this.importScripts) { | 7 if (this.importScripts) { |
| 8 importScripts('../../../../fast/js/resources/js-test-pre.js'); | 8 importScripts('../../../../resources/js-test.js'); |
| 9 importScripts('../../resources/shared.js'); | 9 importScripts('../../resources/shared.js'); |
| 10 } | 10 } |
| 11 | 11 |
| 12 description("Test IndexedDB: object identity"); | 12 description("Test IndexedDB: object identity"); |
| 13 | 13 |
| 14 indexedDBTest(prepareDatabase, testIdentitySomeMore); | 14 indexedDBTest(prepareDatabase, testIdentitySomeMore); |
| 15 function prepareDatabase() | 15 function prepareDatabase() |
| 16 { | 16 { |
| 17 db = event.target.result; | 17 db = event.target.result; |
| 18 event.target.transaction.onabort = unexpectedAbortCallback; | 18 event.target.transaction.onabort = unexpectedAbortCallback; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 index3 = evalAndLog("index3 = objectStore3.index('bar');"); | 40 index3 = evalAndLog("index3 = objectStore3.index('bar');"); |
| 41 index4 = evalAndLog("index4 = objectStore4.index('bar');"); | 41 index4 = evalAndLog("index4 = objectStore4.index('bar');"); |
| 42 shouldBeTrue("index3 === index4"); | 42 shouldBeTrue("index3 === index4"); |
| 43 | 43 |
| 44 shouldBeFalse("index3 === index1"); | 44 shouldBeFalse("index3 === index1"); |
| 45 shouldBeFalse("index4 === index2"); | 45 shouldBeFalse("index4 === index2"); |
| 46 | 46 |
| 47 finishJSTest(); | 47 finishJSTest(); |
| 48 } | 48 } |
| OLD | NEW |