mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
d69a3c2e97
--HG-- rename : dom/datastore/tests/test_basic.html => dom/datastore/tests/test_bug957086.html
35 lines
686 B
HTML
35 lines
686 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test for DataStore - bug 1008044</title>
|
|
</head>
|
|
<body>
|
|
<div id="container"></div>
|
|
<script type="application/javascript;version=1.7">
|
|
|
|
function is(a, b, msg) {
|
|
alert((a == b ? 'OK' : 'KO') + ' ' + msg)
|
|
}
|
|
|
|
function cbError() {
|
|
alert('KO error');
|
|
}
|
|
|
|
function finish() {
|
|
alert('DONE');
|
|
}
|
|
|
|
navigator.getDataStores('foo').then(function(stores) {
|
|
is (stores.length, 1, "Correct number of Stores");
|
|
is (stores[0].name, 'foo', "Correct name is received!");
|
|
stores[0].get(42).then(function(something) {
|
|
is (something, null, "Correct value");
|
|
finish();
|
|
}, cbError);
|
|
}, cbError);
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|