Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-close.html

Issue 1236713002: Import FileAPI tests from web-platform-tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh, stupid baselines Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Blob.close</title>
4 <link rel=help href="http://dev.w3.org/2006/webapi/FileAPI/#dfn-close">
5 <script src="../../../../resources/testharness.js"></script>
6 <script src="../../../../resources/testharnessreport.js"></script>
7 <script src="../support/Blob.js"></script>
8 <div id="log"></div>
9 <script>
10 test(function() {
11 var blob = new Blob(["TEST"]);
12 var sliced = blob.slice();
13 blob.close();
14 test_blob(function() {
15 return blob;
16 }, {
17 expected: "",
18 type: "",
19 desc: "Blob should be empty."
20 });
21 test_blob(function() {
22 return sliced;
23 }, {
24 expected: "PASS",
25 type: "",
26 desc: "Slice should still have the data."
27 });
28 });
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698