1 if (this.importScripts) {
2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js');
6 testObsoleteConstants();
7 function testObsoleteConstants()
10 debug("Verify that constants from previous version of the spec (beyond a grace period) have been removed:");
12 // http://www.w3.org/TR/2010/WD-IndexedDB-20100819/
13 shouldBe("IDBKeyRange.SINGLE", "undefined");
14 shouldBe("IDBKeyRange.LEFT_OPEN", "undefined");
15 shouldBe("IDBKeyRange.RIGHT_OPEN", "undefined");
16 shouldBe("IDBKeyRange.LEFT_BOUND", "undefined");
17 shouldBe("IDBKeyRange.RIGHT_BOUND", "undefined");
19 // Unclear that this was ever in the spec, but it was present in mozilla tests:
20 shouldBe("IDBTransaction.LOADING", "undefined");
22 // http://www.w3.org/TR/2011/WD-IndexedDB-20111206/
23 shouldBe("IDBRequest.LOADING", "undefined");
24 shouldBe("IDBRequest.DONE", "undefined");
26 // http://www.w3.org/TR/2011/WD-IndexedDB-20111206/
27 shouldBe("IDBCursor.NEXT", "undefined");
28 shouldBe("IDBCursor.NEXT_NO_DUPLICATE", "undefined");
29 shouldBe("IDBCursor.PREV", "undefined");
30 shouldBe("IDBCursor.PREV_NO_DUPLICATE", "undefined");
32 // http://www.w3.org/TR/2011/WD-IndexedDB-20111206/
33 shouldBe("IDBTransaction.READ_ONLY", "undefined");
34 shouldBe("IDBTransaction.READ_WRITE", "undefined");
35 shouldBe("IDBTransaction.VERSION_CHANGE", "undefined");