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

Unified Diff: third_party/WebKit/LayoutTests/fast/files/blob-slice-type.html

Issue 1362963003: Blob/File constructors/slice method shouldn't throw on invalid types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated win expectation Created 3 years, 9 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: third_party/WebKit/LayoutTests/fast/files/blob-slice-type.html
diff --git a/third_party/WebKit/LayoutTests/fast/files/blob-slice-type.html b/third_party/WebKit/LayoutTests/fast/files/blob-slice-type.html
index 912c9f1707ad0657b68ba1c0f348b09b0b4f8bd6..b981861dd1ceec1a13a2cff17ebe7d1c8387980d 100644
--- a/third_party/WebKit/LayoutTests/fast/files/blob-slice-type.html
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-slice-type.html
@@ -12,6 +12,15 @@ test(function() {
}, 'Blob.slice() with type argument as undefined.');
test(function() {
+ assert_equals(new Blob().slice(0, 0, 'hello\u0100').type, "");
+}, 'Blob.slice() with non-ASCII type.');
+
+test(function() {
+ assert_equals(new Blob().slice(0, 0, 'hello\u001F').type, "");
+ assert_equals(new Blob().slice(0, 0, 'hello\u00FF').type, "");
+}, 'Blob.slice() with non-printable-ASCII type.');
+
+test(function() {
assert_equals(new Blob().slice(0, 0).type, "");
}, 'Blob.slice() with no type argument passed.');
</script>

Powered by Google App Engine
This is Rietveld 408576698