Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 if (self.importScripts) { | |
|
Marijn Kruisselbrink
2016/06/08 20:44:40
It doesn't really make sense to have this file in
| |
| 2 importScripts('../resources/fetch-test-helpers.js'); | |
|
Marijn Kruisselbrink
2016/06/08 20:44:40
After moving the file you'll have to change this t
palakj1
2016/06/09 18:13:38
Done
| |
| 3 } | |
| 4 | |
| 5 function callback(){}; | |
| 6 | |
| 7 test(function(t) { | |
|
Marijn Kruisselbrink
2016/06/08 20:44:40
This should still be an async_test, like the one y
palakj1
2016/06/09 18:13:38
done
| |
| 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= function() { | |
|
Marijn Kruisselbrink
2016/06/08 20:44:41
nit: space before =
palakj1
2016/06/09 18:13:38
Done
| |
| 13 var db = openRequest.result; | |
| 14 db.createObjectStore('store'); | |
| 15 }; | |
| 16 openRequest.onsuccess = function() { | |
| 17 var db = openRequest.result; | |
| 18 var tx = db.transaction('store', 'readwrite'); | |
| 19 obs1.observe(db,tx); | |
|
Marijn Kruisselbrink
2016/06/08 20:44:40
nit: space after ,
palakj1
2016/06/09 18:13:38
Done
| |
| 20 done(); | |
|
Marijn Kruisselbrink
2016/06/08 20:44:40
this should be t.done()
palakj1
2016/06/09 18:13:38
Done
| |
| 21 }; | |
| 22 | |
| 23 }, 'observers constructor test'); | |
| 24 | |
| 25 // done(); | |
|
Marijn Kruisselbrink
2016/06/08 20:44:40
And you'll need to uncomment this (to signal "all
palakj1
2016/06/09 18:13:38
Done
| |
| OLD | NEW |