Revision 89daad32c029798b7203a36f21598fcba470e07d authored by Anthony Ramine on 06 April 2018, 10:22:01 UTC, committed by Anthony Ramine on 06 April 2018, 10:22:01 UTC
See https://github.com/w3c/web-platform-tests/issues/10343#issuecomment-379211826 I know we can't stop progress in WPT just because Servo is stuck in the past, but let's not make all IDL-related tests fail in it for something that can be avoided so easily.
1 parent 603e277
idbobjectstore_add.htm
<!DOCTYPE html>
<meta charset="utf-8">
<title>IDBObjectStore.add() - add with an inline key </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(),
record = { key: 1, property: "data" };
var open_rq = createdb(t);
open_rq.onupgradeneeded = function(e) {
db = e.target.result;
var objStore = db.createObjectStore("store", { keyPath: "key" });
objStore.add(record);
};
open_rq.onsuccess = function(e) {
var rq = db.transaction("store")
.objectStore("store")
.get(record.key);
rq.onsuccess = t.step_func(function(e) {
assert_equals(e.target.result.property, record.property);
assert_equals(e.target.result.key, record.key);
t.done();
});
};
</script>
<div id="log"></div>
Computing file changes ...