| 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 a77f11a1f66278cb398765e54901bb6f9512cd9c..dfcf7295440e7e2788cec51475714d9e63e9bcbe 100644
|
| --- a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
|
| +++ b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
|
| @@ -7,7 +7,7 @@ async_test(function(t) {
|
| var dbname = location.pathname + ' - ' + 'empty transaction';
|
| var openRequest = indexedDB.open(dbname);
|
| var callback_count = 0;
|
| - var obs = new IDBObserver(t.step_func(function() { callback_count++; }), {operationTypes: ['put']});
|
| + var obs = new IDBObserver(t.step_func(function() { callback_count++; }));
|
|
|
| openRequest.onupgradeneeded = t.step_func(function() {
|
| openRequest.result.createObjectStore('store');
|
| @@ -16,7 +16,7 @@ async_test(function(t) {
|
| var db = openRequest.result;
|
| var tx1 = db.transaction('store', 'readwrite');
|
| var tx2 = db.transaction('store', 'readwrite');
|
| - obs.observe(db, tx1);
|
| + obs.observe(db, tx1, {operationTypes: ['put']});
|
| tx2.objectStore('store').put(1, 1);
|
| tx1.oncomplete = t.step_func(function() {
|
| countCallbacks(callback_count, 0);
|
| @@ -37,7 +37,7 @@ async_test(function(t) {
|
| var obs;
|
| openRequest.onupgradeneeded = t.step_func(function() {
|
| openRequest.result.createObjectStore('store');
|
| - obs = new IDBObserver(t.step_func(function(changes) { callback_count++; }), { operationTypes: ['put'] });
|
| + obs = new IDBObserver(t.step_func(function(changes) { callback_count++; }));
|
| });
|
| openRequest.onsuccess = t.step_func(function() {
|
| var db = openRequest.result;
|
| @@ -45,7 +45,7 @@ async_test(function(t) {
|
| var tx2 = db.transaction('store', 'readwrite');
|
| tx1.objectStore('store').get(1);
|
| tx2.objectStore('store').put(1, 1);
|
| - obs.observe(db, tx1);
|
| + obs.observe(db, tx1, { operationTypes: ['put'] });
|
| tx1.oncomplete = t.step_func(function() {
|
| countCallbacks(callback_count, 0);
|
| });
|
| @@ -62,11 +62,11 @@ async_test(function(t) {
|
| var dbname = location.pathname + ' - ' + 'ignore observe call';
|
| var openRequest = indexedDB.open(dbname);
|
| var callback_count = 0;
|
| - var obs = new IDBObserver(t.step_func(function() { callback_count++; }), { operationTypes: ['put'] });
|
| + var obs = new IDBObserver(t.step_func(function() { callback_count++; }));
|
| openRequest.onupgradeneeded = t.step_func(function() {
|
| var db = openRequest.result;
|
| db.createObjectStore('store');
|
| - obs.observe(db, openRequest.transaction);
|
| + obs.observe(db, openRequest.transaction, { operationTypes: ['put'] });
|
| });
|
| openRequest.onsuccess = t.step_func(function() {
|
| var db = openRequest.result;
|
| @@ -84,7 +84,7 @@ async_test(function(t) {
|
| var dbname = location.pathname + ' - ' + 'abort associated transaction';
|
| var openRequest = indexedDB.open(dbname);
|
| var callback_count = 0;
|
| - var obs = new IDBObserver(t.step_func(function() { callback_count++; }), { operationTypes: ['put'] });
|
| + var obs = new IDBObserver(t.step_func(function() { callback_count++; }));
|
| openRequest.onupgradeneeded = t.step_func(function() {
|
| openRequest.result.createObjectStore('store');
|
| });
|
| @@ -94,7 +94,7 @@ async_test(function(t) {
|
| var tx2 = db.transaction('store', 'readwrite');
|
| tx1.objectStore('store').get(1);
|
| tx2.objectStore('store').put(1, 1);
|
| - obs.observe(db, tx1);
|
| + obs.observe(db, tx1, { operationTypes: ['put'] });
|
| tx1.abort();
|
|
|
| tx1.onabort = t.step_func(function(){
|
| @@ -113,7 +113,7 @@ async_test(function(t) {
|
| var dbname = location.pathname + ' - ' + 'abort transaction';
|
| var openRequest = indexedDB.open(dbname);
|
| var callback_count = 0;
|
| - var obs = new IDBObserver(t.step_func(function() { callback_count++; }), { operationTypes: ['put'] });
|
| + var obs = new IDBObserver(t.step_func(function() { callback_count++; }));
|
| openRequest.onupgradeneeded = t.step_func(function() {
|
| openRequest.result.createObjectStore('store');
|
| });
|
| @@ -125,7 +125,7 @@ async_test(function(t) {
|
| tx1.objectStore('store').get(1);
|
| tx2.objectStore('store').put(1, 1);
|
| tx3.objectStore('store').put(1, 1);
|
| - obs.observe(db, tx1);
|
| + obs.observe(db, tx1, { operationTypes: ['put'] });
|
| tx2.abort();
|
| tx1.oncomplete = t.step_func(function() {
|
| countCallbacks(callback_count, 0);
|
|
|