Revision 7208979a308347c4379e0669b83de1a013176a2b authored by Yutaka Hirano on 24 April 2018, 07:30:37 UTC, committed by Yutaka Hirano on 24 April 2018, 07:30:37 UTC
1 parent 5acf250
idbrequest_result.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>IDBRequest.result</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=support.js></script>
<script>
async_test(t => {
var open = createdb(t);
open.onupgradeneeded = t.step_func(e => {
var db = e.target.result;
db.createObjectStore('store');
});
open.onsuccess = t.step_func(e => {
var db = e.target.result;
var request = db.transaction('store').objectStore('store').get(0);
assert_equals(request.readyState, 'pending');
assert_throws('InvalidStateError', () => request.result,
'IDBRequest.result should throw if request is pending');
t.done();
});
}, 'IDBRequest.result throws if ready state is pending');
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...