| OLD | NEW |
| 1 // original test: | 1 // original test: |
| 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_key_requirem
ents.html | 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_key_requirem
ents.html |
| 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's behavior put()ing with null key"); | 12 description("Test IndexedDB's behavior put()ing with null key"); |
| 13 | 13 |
| 14 indexedDBTest(prepareDatabase); | 14 indexedDBTest(prepareDatabase); |
| 15 function prepareDatabase() | 15 function prepareDatabase() |
| 16 { | 16 { |
| 17 db = event.target.result; | 17 db = event.target.result; |
| 18 objectStore = evalAndLog("objectStore = db.createObjectStore('bar');"); | 18 objectStore = evalAndLog("objectStore = db.createObjectStore('bar');"); |
| 19 evalAndExpectException("objectStore.put({}, null);", "0", "'DataError'"); | 19 evalAndExpectException("objectStore.put({}, null);", "0", "'DataError'"); |
| 20 finishJSTest(); | 20 finishJSTest(); |
| 21 } | 21 } |
| OLD | NEW |