Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbcursor-reused.htm

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>IDBCursor is reused</title> 2 <title>IDBCursor is reused</title>
3 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> 3 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal">
4 <meta rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html# widl-IDBCursor-continue-void-any-key"> 4 <meta rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html# widl-IDBCursor-continue-void-any-key">
5 <meta rel=assert title="Otherwise this method runs the steps for asynchronously executing a request. However, the steps are slightly modified such that instead of creating a new IDBRequest, it reuses the request originally created when this cursor was created. The done flag on the request is set to false before the req uest is returned. The steps are run with the cursor's source as source and the s teps for iterating a cursor as operation, using this cursor as cursor and the ke y parameter as key."> 5 <meta rel=assert title="Otherwise this method runs the steps for asynchronously executing a request. However, the steps are slightly modified such that instead of creating a new IDBRequest, it reuses the request originally created when this cursor was created. The done flag on the request is set to false before the req uest is returned. The steps are run with the cursor's source as source and the s teps for iterating a cursor as operation, using this cursor as cursor and the ke y parameter as key.">
6 <script src="../../../resources/testharness.js"></script> 6 <script src="../../../resources/testharness.js"></script>
7 <script src="../../../resources/testharnessreport.js"></script> 7 <script src="../../../resources/testharnessreport.js"></script>
8 <script src="support.js"></script> 8 <script src="support.js"></script>
9 9
10 <script> 10 <script>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 assert_equals(count, 3, "cursor callback runs") 60 assert_equals(count, 3, "cursor callback runs")
61 assert_equals(rq.custom_request_value, 2, "variable placed on ol d IDBRequest") 61 assert_equals(rq.custom_request_value, 2, "variable placed on ol d IDBRequest")
62 assert_equals(cursor.custom_cursor_value, 1, "custom cursor valu e (transaction.complete)") 62 assert_equals(cursor.custom_cursor_value, 1, "custom cursor valu e (transaction.complete)")
63 this.done() 63 this.done()
64 }) 64 })
65 } 65 }
66 66
67 </script> 67 </script>
68 68
69 <div id="log"></div> 69 <div id="log"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698