Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / cursor-cast.html
blob181e693f59b1ca0449ffa8d89f3feb48764d376e
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script src="resources/shared.js"></script>
4 <script>
6 description("Ensure cursor wrappers are created correctly.");
8 indexedDBTest(prepareDatabase, verifyWrappers);
9 function prepareDatabase(evt)
11 preamble(evt);
12 evalAndLog("db = event.target.result");
13 evalAndLog("store = db.createObjectStore('store')");
14 evalAndLog("store.put(0, 0)");
17 function verifyWrappers(evt)
19 preamble(evt);
20 evalAndLog("db = event.target.result");
21 evalAndLog("tx = db.transaction('store', 'readwrite')");
22 evalAndLog("request = tx.objectStore('store').openCursor()");
24 request.onsuccess = function onOpenCursorSuccess(evt) {
25 preamble(evt);
26 evalAndLog("cursor = event.target.result");
27 evalAndLog("request = cursor.update(1)");
29 request.onsuccess = function onUpdateSuccess(evt) {
30 preamble(evt);
31 evalAndLog("cursor = null");
32 gc();
33 setTimeout(checkCursorType, 0);
38 function checkCursorType() {
39 shouldBeEqualToString("request.source.toString()", "[object IDBCursorWithValue]");
40 finishJSTest();
43 </script>