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

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/cursor-leak.html

Issue 1950613005: Fixes tests that use internals.observeGC to work with Ignition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes comments and fixes more tests. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/storage/indexeddb/cursor-leak.html
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-leak.html b/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-leak.html
index abeabf87944aeb4aa06633e6a0daa942e93df0d3..28bc0b4d97bc2619e159cf87e7027b0ee84e3385 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-leak.html
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-leak.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
+<script src="../../resources/observeGC.js"></script>
<script src="resources/shared.js"></script>
<script>
@@ -40,7 +41,7 @@ function onOpen(evt)
cursor.primaryKey.cursor = cursor;
cursor.value.cursor = cursor;
- cursorObserver = internals.observeGC(cursor);
+ cursorObserver = observeGC(() => {return cursor;});
cursorRequest = null;
cursor = null;

Powered by Google App Engine
This is Rietveld 408576698