Revision e5478286b1bd4e84889619e4c75f017f6021a2d9 authored by Darren Shen on 12 April 2018, 11:59:24 UTC, committed by Chromium WPT Sync on 12 April 2018, 11:59:24 UTC
Introduces the <angle> data type.
Test fails because we compute offset-rotate to a pair rather than
'as specified'

had to rebaseline all the tests.

Bug: 820299
Change-Id: Ifdc192550b0b544b9887af80c259b3bfeede556b
Reviewed-on: https://chromium-review.googlesource.com/1003433
Commit-Queue: Darren Shen <shend@chromium.org>
Reviewed-by: nainar <nainar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550146}
1 parent 19a42b9
Raw File
idbobjectstore_openCursor.htm
<!DOCTYPE html>
<title>IDBObjectStore.openCursor() - iterate through 100 objects</title>
<link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>

<script>

    var db
    var open_rq = createdb(async_test())

    open_rq.onupgradeneeded = function(e) {
        db = e.target.result;
        var store = db.createObjectStore("store");

        for (var i=0; i < 100; i++)
            store.add("record_" + i, i);
    };

    open_rq.onsuccess = function(e) {
        var count = 0
        var txn = db.transaction("store")

        txn.objectStore("store")
           .openCursor().onsuccess = this.step_func(function(e)
        {
            if (e.target.result) {
                count += 1;
                e.target.result.continue()
            }
        })

        txn.oncomplete = this.step_func(function() {
            assert_equals(count, 100);
            this.done()
        })
    }

</script>

<div id="log"></div>
back to top