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

Unified Diff: LayoutTests/fast/files/blob-close-revoke.html

Issue 184473002: Sync Blob.close() behavior wrt updated spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/files/blob-close-revoke.html
diff --git a/LayoutTests/fast/files/blob-close-revoke.html b/LayoutTests/fast/files/blob-close-revoke.html
index f1073f41cba2c3cf1f1087f09db2f43331707ed2..5a1f5626dc28f7379963c0ac3f9a0d7a567af994 100644
--- a/LayoutTests/fast/files/blob-close-revoke.html
+++ b/LayoutTests/fast/files/blob-close-revoke.html
@@ -91,24 +91,19 @@ function testRevokeAfterClose()
img.src = blobURL1;
}
-function testRegisterAfterClose()
+function testCreateAfterClose()
{
debug("Test creating object URLs on closed Blobs");
blob = new Blob(["body{background: green}"], {type: "text/css"});
- blobURL1 = window.URL.createObjectURL(blob);
blob.close();
- // Verifies createObjectURL() still works and returns a valid (non-empty) URL
- // without throwing an error. See http://crbug.com/344820 for this requirement.
- blobURL2 = window.URL.createObjectURL(blob);
- shouldBeTrue("blobURL1 !== blobURL2");
- shouldBeTrue("blobURL2.length > 0");
+ shouldThrow("window.URL.createObjectURL(blob);");
runNextTest();
}
var tests = [
testRevokeAfterClose,
testRevokeAfterCloseWorkers,
- testRegisterAfterClose ];
+ testCreateAfterClose ];
function runNextTest()
{
« no previous file with comments | « LayoutTests/fast/files/blob-close-expected.txt ('k') | LayoutTests/fast/files/blob-close-revoke-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698