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

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

Issue 2509833002: Make Blob#slice() contentType argument to be non nullable. (Closed)
Patch Set: Modified outdated 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
Index: third_party/WebKit/LayoutTests/fast/files/blob-slice-type-test.html
diff --git a/third_party/WebKit/LayoutTests/fast/files/blob-slice-type-test.html b/third_party/WebKit/LayoutTests/fast/files/blob-slice-type-test.html
new file mode 100644
index 0000000000000000000000000000000000000000..38f7919590304ae4ff221a274494c9c338f9fd41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-slice-type-test.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<title>Blob.slice() type argument</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ var b = new Blob([1,2,3,4]);
+ var c = b.slice(1,3, null);
+ assert_equals(c.type, "null");
+}, 'Blob.slice() argument "type" should be nullable.');
foolip 2016/11/17 19:48:16 Oops, it should *not* be nullable. But even better
lunalu1 2016/11/17 20:03:01 Done.
+</script>

Powered by Google App Engine
This is Rietveld 408576698