https://github.com/web-platform-tests/wpt
Raw File
Tip revision: df89fd5a317a9d4ab43156a4e8f2c161172fcbbd authored by Darren Shen on 05 April 2018, 02:55:33 UTC
[css-typed-om] Add support for grid properties.
Tip revision: df89fd5
idbobjectstore_index.htm
<!DOCTYPE html>
<meta charset="utf-8">
<title>IDBObjectStore.index() - returns an index </title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>

<script>
    var db,
      t = async_test();

    var open_rq = createdb(t);
    open_rq.onupgradeneeded = function(e) {
        db = e.target.result;

        db.createObjectStore("store")
          .createIndex("index", "indexedProperty");
    };

    open_rq.onsuccess = function(e) {
        var index = db.transaction("store")
                      .objectStore("store")
                      .index("index");

        assert_true(index instanceof IDBIndex, 'instanceof IDBIndex');
        t.done();
    };

</script>


<div id="log"></div>

back to top