blob: 9f850ed6423463bb62de5270fbdc84a593fc45fc [file] [log] [blame]
<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>