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

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: Observer idl with worker tests 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>
Marijn Kruisselbrink 2016/06/08 20:44:41 Rather than duplicating the test, you can just <sc
6
7 function callback(){
8 }
9
10 async_test(function(t) {
11 var description = 'observers constructor test';
12 var dbname = location.pathname + ' - ' + description;
13 var openRequest = indexedDB.open(dbname);
14 var obs1 = new IDBObserver(callback, {transaction: true, values: true});
15 openRequest.onupgradeneeded= t.step_func(function() {
16 var db = openRequest.result;
17 db.createObjectStore('store');
18 });
19 openRequest.onsuccess = t.step_func(function() {
20 var db = openRequest.result;
21 var tx = db.transaction('store', 'readwrite');
22 obs1.observe(db,tx);
23 t.done();
24 });
25
26 }, 'observers constructor test');
27
28
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698