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

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

Issue 2031113002: IndexedDB Observers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IDl observer 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 <!DOCTYPE html>
2 <title>IndexedDB: Observer Tests</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6
7
8 function callback(){
9 }
10
11 async_test(function(t) {
12 var description = 'observers constructor test';
13 var dbname = location.pathname + ' - ' + description;
14 var openRequest = indexedDB.open(dbname);
15 var obs1 = new IDBObserver(callback, {transaction: true, values: true});
16 openRequest.onupgradeneeded= t.step_func(function() {
17 var db = openRequest.result;
18 db.createObjectStore('store');
19 });
20 openRequest.onsuccess = t.step_func(function() {
21 var db = openRequest.result;
22 var tx = db.transaction('store', 'readwrite');
23 obs1.observe(db,tx);
24 t.done();
25 });
26
27 }, 'observers constructor test');
28
29
30 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698