Revision fd10426a47d917110bc6f04995f01559ae817f05 authored by Eric Willigers on 27 March 2018, 11:30:43 UTC, committed by Eric Willigers on 10 April 2018, 09:59:10 UTC
1 parent 67918e5
idbindex-objectStore-SameObject.html
<!doctype html>
<meta charset=utf-8>
<title>IndexedDB: Verify [SameObject] behavior of IDBIndex's objectStore attribute</title>
<meta name="help" href="https://w3c.github.io/IndexedDB/#dom-idbindex-objectstore">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>
<script>
indexeddb_test(
(t, db) => {
const store = db.createObjectStore('store');
const index = store.createIndex('index', 'keyPath');
assert_equals(index.objectStore, index.objectStore,
'Attribute should yield the same object each time');
},
(t, db) => {
const tx = db.transaction('store');
const store = tx.objectStore('store');
const index = store.index('index');
assert_equals(index.objectStore, index.objectStore,
'Attribute should yield the same object each time');
t.done();
},
'IDBIndex.objectStore [SameObject]'
);
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...