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

Side by Side Diff: LayoutTests/storage/indexeddb/cursor-cast.html

Issue 211933008: Remove multiple GC calls and replace GCController.collect calls with GCController.collectAll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert change to worker-event-listener Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <script src="resources/shared.js"></script> 3 <script src="resources/shared.js"></script>
4 <script> 4 <script>
5 5
6 description("Ensure cursor wrappers are created correctly."); 6 description("Ensure cursor wrappers are created correctly.");
7 7
8 indexedDBTest(prepareDatabase, verifyWrappers); 8 indexedDBTest(prepareDatabase, verifyWrappers);
9 function prepareDatabase(evt) 9 function prepareDatabase(evt)
10 { 10 {
(...skipping 12 matching lines...) Expand all
23 23
24 request.onsuccess = function onOpenCursorSuccess(evt) { 24 request.onsuccess = function onOpenCursorSuccess(evt) {
25 preamble(evt); 25 preamble(evt);
26 evalAndLog("cursor = event.target.result"); 26 evalAndLog("cursor = event.target.result");
27 evalAndLog("request = cursor.update(1)"); 27 evalAndLog("request = cursor.update(1)");
28 28
29 request.onsuccess = function onUpdateSuccess(evt) { 29 request.onsuccess = function onUpdateSuccess(evt) {
30 preamble(evt); 30 preamble(evt);
31 evalAndLog("cursor = null"); 31 evalAndLog("cursor = null");
32 gc(); 32 gc();
33 gc(); // FIXME: Shouldn't need to call twice. http://crbug.com/28807 2
34 setTimeout(checkCursorType, 0); 33 setTimeout(checkCursorType, 0);
35 }; 34 };
36 }; 35 };
37 } 36 }
38 37
39 function checkCursorType() { 38 function checkCursorType() {
40 shouldBeEqualToString("request.source.toString()", "[object IDBCursorWithVal ue]"); 39 shouldBeEqualToString("request.source.toString()", "[object IDBCursorWithVal ue]");
41 finishJSTest(); 40 finishJSTest();
42 } 41 }
43 42
44 </script> 43 </script>
OLDNEW
« no previous file with comments | « LayoutTests/resources/magnitude-perf.js ('k') | LayoutTests/storage/websql/multiple-databases-garbage-collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698