mirror of
https://github.com/servo/servo.git
synced 2025-10-12 06:20:26 +01:00
22 lines
600 B
HTML
22 lines
600 B
HTML
<!DOCTYPE html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="utils.js"></script>
|
|
<script>
|
|
|
|
const bc = new PrerenderChannel('prerender-channel');
|
|
assert_true(document.prerendering);
|
|
|
|
let result = "Success";
|
|
const db = openDatabase("test", "1.0", "test database", 1024);
|
|
db.transaction(function (tx) {
|
|
tx.executeSql('CREATE TABLE IF NOT EXISTS foo (text)');
|
|
tx.executeSql('INSERT INTO foo (text) VALUES ("bar")');
|
|
}, function(error) {
|
|
result = error;
|
|
}, function() {
|
|
bc.postMessage(result);
|
|
bc.close();
|
|
});
|
|
|
|
</script>
|