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

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

Issue 2449563002: [IndexedDB] Add Observer Tests (Closed)
Patch Set: Fixed errors in other tests, and marked observer tests as long Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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 1d96718e3372e1fd5c40a1aece1fb2161e118a24..a77f11a1f66278cb398765e54901bb6f9512cd9c 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js
@@ -10,7 +10,7 @@ async_test(function(t) {
var obs = new IDBObserver(t.step_func(function() { callback_count++; }), {operationTypes: ['put']});
openRequest.onupgradeneeded = t.step_func(function() {
- createDatabase(openRequest.result, ['store']);
+ openRequest.result.createObjectStore('store');
});
openRequest.onsuccess = t.step_func(function() {
var db = openRequest.result;
@@ -36,7 +36,7 @@ async_test(function(t) {
var callback_count = 0;
var obs;
openRequest.onupgradeneeded = t.step_func(function() {
- createDatabase(openRequest.result, ['store']);
+ openRequest.result.createObjectStore('store');
obs = new IDBObserver(t.step_func(function(changes) { callback_count++; }), { operationTypes: ['put'] });
});
openRequest.onsuccess = t.step_func(function() {
@@ -86,7 +86,7 @@ async_test(function(t) {
var callback_count = 0;
var obs = new IDBObserver(t.step_func(function() { callback_count++; }), { operationTypes: ['put'] });
openRequest.onupgradeneeded = t.step_func(function() {
- createDatabase(openRequest.result, ['store']);
+ openRequest.result.createObjectStore('store');
});
openRequest.onsuccess = t.step_func(function() {
var db = openRequest.result;
@@ -115,7 +115,7 @@ async_test(function(t) {
var callback_count = 0;
var obs = new IDBObserver(t.step_func(function() { callback_count++; }), { operationTypes: ['put'] });
openRequest.onupgradeneeded = t.step_func(function() {
- createDatabase(openRequest.result, ['store']);
+ openRequest.result.createObjectStore('store');
});
openRequest.onsuccess = t.step_func(function() {
var db = openRequest.result;

Powered by Google App Engine
This is Rietveld 408576698