summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/indexeddb/tutorial.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/storage/indexeddb/tutorial.html')
-rw-r--r--LayoutTests/storage/indexeddb/tutorial.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/LayoutTests/storage/indexeddb/tutorial.html b/LayoutTests/storage/indexeddb/tutorial.html
index 2e7e41f..db9f2fa 100644
--- a/LayoutTests/storage/indexeddb/tutorial.html
+++ b/LayoutTests/storage/indexeddb/tutorial.html
@@ -24,8 +24,10 @@
// goal of teaching people IndexedDB. That said, it does have a good amount of coverage and
// serves as a living document describing what's expected to work and how within WebKit so it
// seems well worth having checked in.
-if (window.layoutTestController)
- layoutTestController.dumpAsText(true);
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+}
function setup()
@@ -51,7 +53,7 @@ function setup()
function log(txt)
{
- document.write(txt + "<br>");
+ document.getElementById("logger").innerHTML += txt + "<br>";
}
function logError(txt)
@@ -394,6 +396,7 @@ function onIndexGetSuccess()
function onAllDone()
{
log("Everything worked!");
+ layoutTestController.notifyDone();
}
// The way setVersion is supposed to work:
@@ -429,5 +432,6 @@ function onAllDone()
</script>
<body onload="start()">
Please view source for more information on what this is doing and why...<br><br>
+<div id="logger"></div>
</body>
</html>