OLD | NEW |
(Empty) | |
| 1 Verify the use of IDBVersionChangeEventInit |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 event = new IDBVersionChangeEvent('default') |
| 7 PASS event instanceof IDBVersionChangeEvent is true |
| 8 PASS event.type is "default" |
| 9 PASS event.oldVersion is 0 |
| 10 PASS event.newVersion is null |
| 11 |
| 12 initEvent = {oldVersion: 123, newVersion: 456} |
| 13 event = new IDBVersionChangeEvent('foo', initEvent) |
| 14 PASS event instanceof IDBVersionChangeEvent is true |
| 15 PASS event.type is "foo" |
| 16 PASS event.oldVersion is initEvent.oldVersion |
| 17 PASS event.newVersion is initEvent.newVersion |
| 18 |
| 19 initEvent = {oldVersion: 'legacy', newVersion: null} |
| 20 event = new IDBVersionChangeEvent('bar', initEvent) |
| 21 PASS event instanceof IDBVersionChangeEvent is true |
| 22 PASS event.type is "bar" |
| 23 PASS event.oldVersion is 0 |
| 24 PASS event.newVersion is null |
| 25 PASS successfullyParsed is true |
| 26 |
| 27 TEST COMPLETE |
| 28 |
OLD | NEW |