Issue #1820 - Improve the Blob implementation

This commit is contained in:
Shing Lyu 2014-11-14 23:56:48 +08:00 committed by Shing Lyu
parent bdb3a2538b
commit f2885b8fc7
6 changed files with 125 additions and 22 deletions

View file

@ -0,0 +1,15 @@
<html>
<head>
<script src="harness.js"></script>
<script>
var testData = ['<a id="a"><b id="b">hey!</b></a>'];
var b = new Blob(testData); // the blob
is(b.size, 32);
is(b.type, "");
var bs = b.slice(0, 5);
is(bs.size, 5);
is(b.type, "");
</script>
</head>
</html>