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

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Observer moved to connection Created 4 years, 6 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/resources/observer.js
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
index 635e3ae3faf6bbe2ad9fd28923d194d6580abae0..5914c2045f8ee46d759d9cad39ef7a7c43eecfb4 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
@@ -9,6 +9,8 @@ async_test(function(t) {
var dbname = location.pathname + ' - ' + description;
var openRequest = indexedDB.open(dbname);
var obs1 = new IDBObserver(callback, {transaction: true, values: true});
+ var obs2 = new IDBObserver(callback, {transaction: true, values: true});
+
openRequest.onupgradeneeded = t.step_func(function() {
var db = openRequest.result;
db.createObjectStore('store');
@@ -17,6 +19,9 @@ async_test(function(t) {
var db = openRequest.result;
var tx = db.transaction('store', 'readwrite');
obs1.observe(db, tx);
+ obs1.observe(db, tx);
+ obs2.observe(db, tx);
+
t.done();
});

Powered by Google App Engine
This is Rietveld 408576698