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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-slice.html

Issue 1923043002: Import web-platform-tests@028d354aba4c8ee6700def957a45f3927241d8b0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix expectations after the test harness was updated Created 4 years, 8 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/imported/web-platform-tests/FileAPI/blob/Blob-slice.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-slice.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-slice.html
index bc953cfa89f7a05f7b3a194a8e000033fa656475..fe5baf60de2ae61eefcb382d09216de790427941 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-slice.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-slice.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Blob slice</title>
-<link rel=help href="http://dev.w3.org/2006/webapi/FileAPI/#slice-method-algo">
+<link rel=help href="https://w3c.github.io/FileAPI/#slice-method-algo">
<link rel=author title="Saurabh Anand" href="mailto:saurabhanandiit@gmail.com">
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
@@ -162,6 +162,23 @@ test(function() {
var invalidTypes = [
"\xFF",
+ "te\x09xt/plain",
+ "te\x00xt/plain",
+ "te\x1Fxt/plain",
+ "te\x7Fxt/plain"
+];
+invalidTypes.forEach(function(type) {
+ test_blob(function() {
+ var blob = new Blob(["PASS"]);
+ return blob.slice(0, 4, type);
+ }, {
+ expected: "PASS",
+ type: "",
+ desc: "Invalid contentType (" + format_value(type) + ")"
+ });
+});
+
+var validTypes = [
"te(xt/plain",
"te)xt/plain",
"te<xt/plain",
@@ -180,23 +197,6 @@ var invalidTypes = [
"te{xt/plain",
"te}xt/plain",
"te\x20xt/plain",
- "te\x09xt/plain",
- "te\x00xt/plain",
- "te\x1Fxt/plain",
- "te\x7Fxt/plain"
-];
-invalidTypes.forEach(function(type) {
- test_blob(function() {
- var blob = new Blob(["PASS"]);
- return blob.slice(0, 4, type);
- }, {
- expected: "PASS",
- type: "",
- desc: "Invalid contentType (" + format_value(type) + ")"
- });
-});
-
-var validTypes = [
"TEXT/PLAIN",
"text/plain;charset = UTF-8",
"text/plain;charset=UTF-8"

Powered by Google App Engine
This is Rietveld 408576698