mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
22
dom/indexedDB/test/unit/GlobalObjectsSandbox.js
Normal file
22
dom/indexedDB/test/unit/GlobalObjectsSandbox.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
function runTest() {
|
||||
const name = "Splendid Test";
|
||||
|
||||
let keyRange = IDBKeyRange.only(42);
|
||||
ok(keyRange, "Got keyRange");
|
||||
|
||||
let request = indexedDB.open(name, 1);
|
||||
request.onerror = function(event) {
|
||||
ok(false, "indexedDB error, '" + event.target.error.name + "'");
|
||||
finishTest();
|
||||
}
|
||||
request.onsuccess = function(event) {
|
||||
let db = event.target.result;
|
||||
ok(db, "Got database");
|
||||
finishTest();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue