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

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

Issue 2031113002: IndexedDB Observers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: expected files updated 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 unified diff | Download patch
OLDNEW
(Empty)
1 if (this.importScripts) {
2 importScripts('../../../resources/testharness.js');
3 }
4
5 function callback(){};
6
7 async_test(function(t) {
8 var description = 'observers constructor test';
9 var dbname = location.pathname + ' - ' + description;
10 var openRequest = indexedDB.open(dbname);
11 var obs1 = new IDBObserver(callback, {transaction: true, values: true});
12 openRequest.onupgradeneeded = t.step_func(function() {
13 var db = openRequest.result;
14 db.createObjectStore('store');
15 });
16 openRequest.onsuccess = t.step_func(function() {
17 var db = openRequest.result;
18 var tx = db.transaction('store', 'readwrite');
19 obs1.observe(db, tx);
20 t.done();
21 });
22
23 }, 'observers constructor test');
24
25 done();
26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698