Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / blob-close.html
blob308c19d37f263c5b79109896db166ac12b870229
1 <!doctype html>
2 <script src="../../resources/js-test.js"></script>
3 <script src="resources/read-common.js"></script>
4 <script>
5 description("Test the Blob.close() method, basic functionality.");
7 var blobContents = ['hello'];
8 var blob = new Blob(blobContents);
9 shouldBeTrue("blob instanceof window.Blob");
10 shouldBe("blob.size", "5");
11 shouldBe("blob.close(); blob.size", "0");
13 blob = new Blob(blobContents, {type: "text/plain"});
14 shouldBeEqualToString("blob.type", "text/plain");
15 var sliced1 = blob.slice(2);
16 shouldBe("sliced1.size", "3");
17 shouldBe("blob.close(); blob.size", "0");
18 shouldBeEqualToString("blob.type", "text/plain");
19 shouldBe("sliced1.size", "3");
20 var sliced2 = sliced1.slice(2);
21 shouldBe("sliced2.size", "1");
22 shouldThrow("blob.slice(2)");
23 shouldThrow("blob.close()");
24 </script>