| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..635e3ae3faf6bbe2ad9fd28923d194d6580abae0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
|
| @@ -0,0 +1,26 @@
|
| +if (this.importScripts) {
|
| + importScripts('../../../resources/testharness.js');
|
| +}
|
| +
|
| +function callback(){};
|
| +
|
| +async_test(function(t) {
|
| + var description = 'observers constructor test';
|
| + var dbname = location.pathname + ' - ' + description;
|
| + var openRequest = indexedDB.open(dbname);
|
| + var obs1 = new IDBObserver(callback, {transaction: true, values: true});
|
| + openRequest.onupgradeneeded = t.step_func(function() {
|
| + var db = openRequest.result;
|
| + db.createObjectStore('store');
|
| + });
|
| + openRequest.onsuccess = t.step_func(function() {
|
| + var db = openRequest.result;
|
| + var tx = db.transaction('store', 'readwrite');
|
| + obs1.observe(db, tx);
|
| + t.done();
|
| + });
|
| +
|
| +}, 'observers constructor test');
|
| +
|
| +done();
|
| +
|
|
|