<html>
<head>
<script>
function runTest()
{
    var blob = new Blob(["0123456789"]);
    var reader = new FileReader();
    reader.onload = function(event) {
        console.log("Received data: " + event.target.result);
    }
    reader.onloadend = function() {
        if (window.testRunner)
            testRunner.notifyDone();
    }
    reader.onerror = function(event) {
        console.log("Received error event: " + event.target.error.code);
    };
    reader.readAsText(blob);
}

</script>
</head>
<body onload="runTest()">
</body>
</html>
