| OLD | NEW |
| (Empty) | |
| 1 if (this.importScripts) { |
| 2 importScripts('../../../resources/testharness.js'); |
| 3 } |
| 4 |
| 5 function callback(){}; |
| 6 |
| 7 async_test(function(t) { |
| 8 var description = 'observers constructor test'; |
| 9 var dbname = location.pathname + ' - ' + description; |
| 10 var openRequest = indexedDB.open(dbname); |
| 11 var obs1 = new IDBObserver(callback, {transaction: true, values: true}); |
| 12 openRequest.onupgradeneeded = t.step_func(function() { |
| 13 var db = openRequest.result; |
| 14 db.createObjectStore('store'); |
| 15 }); |
| 16 openRequest.onsuccess = t.step_func(function() { |
| 17 var db = openRequest.result; |
| 18 var tx = db.transaction('store', 'readwrite'); |
| 19 obs1.observe(db, tx); |
| 20 t.done(); |
| 21 }); |
| 22 |
| 23 }, 'observers constructor test'); |
| 24 |
| 25 done(); |
| 26 |
| OLD | NEW |