Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / request-result-cache.html
blob8652ca8cdea3be1a5526d280e47ae6821077d437
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script src="resources/shared.js"></script>
4 <script>
6 description("Verify that a request's result is dirtied when a cursor is continued");
8 indexedDBTest(prepareDatabase, onOpen);
10 function prepareDatabase(evt)
12 preamble(evt);
13 evalAndLog("db = event.target.result");
14 evalAndLog("store = db.createObjectStore('store')");
15 store.put("value", "key");
18 function onOpen(evt)
20 preamble(evt);
21 evalAndLog("db = event.target.result");
22 evalAndLog("tx = db.transaction('store')");
23 evalAndLog("store = tx.objectStore('store')");
25 evalAndLog("cursorRequest = store.openCursor()");
26 cursorRequest.onsuccess = function cursorRequestSuccess(evt) {
27 preamble(evt);
28 if (!cursorRequest.result)
29 return;
31 evalAndLog("cursor = cursorRequest.result");
32 evalAndLog("cursor.continue()");
33 evalAndExpectException("cursorRequest.result", "DOMException.INVALID_STATE_ERR", "'InvalidStateError'"); };
35 tx.oncomplete = finishJSTest;
37 </script>