OLD | NEW |
1 description("Ensure cursor calls behave as expected after cursor has run to the
end."); | 1 description("Ensure cursor calls behave as expected after cursor has run to the
end."); |
2 | 2 |
3 function test() | 3 function test() |
4 { | 4 { |
5 removeVendorPrefixes(); | |
6 setDBNameFromPath(); | 5 setDBNameFromPath(); |
7 prepareDatabase(); | 6 prepareDatabase(); |
8 } | 7 } |
9 | 8 |
10 function prepareDatabase() | 9 function prepareDatabase() |
11 { | 10 { |
12 preamble(); | 11 preamble(); |
13 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); | 12 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); |
14 request.onerror = unexpectedErrorCallback; | 13 request.onerror = unexpectedErrorCallback; |
15 request.onblocked = unexpectedBlockedCallback; | 14 request.onblocked = unexpectedBlockedCallback; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 evalAndExpectException("savedCursor.continue()", "DOMException.INVALID_S
TATE_ERR", "'InvalidStateError'"); | 65 evalAndExpectException("savedCursor.continue()", "DOMException.INVALID_S
TATE_ERR", "'InvalidStateError'"); |
67 evalAndExpectException("savedCursor.continue('key')", "DOMException.INVA
LID_STATE_ERR", "'InvalidStateError'"); | 66 evalAndExpectException("savedCursor.continue('key')", "DOMException.INVA
LID_STATE_ERR", "'InvalidStateError'"); |
68 evalAndExpectException("savedCursor.delete()", "DOMException.INVALID_STA
TE_ERR", "'InvalidStateError'"); | 67 evalAndExpectException("savedCursor.delete()", "DOMException.INVALID_STA
TE_ERR", "'InvalidStateError'"); |
69 | 68 |
70 debug(""); | 69 debug(""); |
71 finishJSTest(); | 70 finishJSTest(); |
72 } | 71 } |
73 } | 72 } |
74 | 73 |
75 test(); | 74 test(); |
OLD | NEW |