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

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

Issue 2509833002: Make Blob#slice() contentType argument to be non nullable. (Closed)
Patch Set: Reformat layout tests Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/local/fileapi/script-tests/send-sliced-dragged-file.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..912c9f1707ad0657b68ba1c0f348b09b0b4f8bd6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-slice-type.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>Blob.slice() type argument</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ assert_equals(new Blob().slice(0, 0, null).type, "null");
+}, 'Blob.slice() with type argument as null.');
+
+test(function() {
+ assert_equals(new Blob().slice(0, 0, undefined).type, "");
+}, 'Blob.slice() with type argument as undefined.');
+
+test(function() {
+ assert_equals(new Blob().slice(0, 0).type, "");
+}, 'Blob.slice() with no type argument passed.');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/local/fileapi/script-tests/send-sliced-dragged-file.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698