Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / resources / events.js
blobd30a57012512fe765f996afbd0b9962c3246b131
1 if (this.importScripts) {
2     importScripts('../../../resources/js-test.js');
3     importScripts('shared.js');
6 description("Test IndexedDB's event interfaces.");
8 function test()
10     shouldBeTrue("'IDBVersionChangeEvent' in self");
12     if ('document' in self) {
13         shouldBeTrue("'oldVersion' in document.createEvent('IDBVersionChangeEvent')");
14         shouldBeTrue("'newVersion' in document.createEvent('IDBVersionChangeEvent')");
15         shouldBeTrue("'dataLoss' in document.createEvent('IDBVersionChangeEvent')");
16     }
18     finishJSTest();
21 test();