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

Unified Diff: runtime/tests/vm/dart/data_uri_failures_test.dart

Issue 1028453002: Support percent encoded data URIs in the standalone embedder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « runtime/bin/vmservice/loader.dart ('k') | runtime/tests/vm/dart/data_uri_import_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/data_uri_failures_test.dart
diff --git a/runtime/tests/vm/dart/data_uri_failures_test.dart b/runtime/tests/vm/dart/data_uri_failures_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d6d4d2d33af1a4e50ce8526439dca8536727ca77
--- /dev/null
+++ b/runtime/tests/vm/dart/data_uri_failures_test.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Wrong MIME.
+import 'data:text/plain;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// 01: runtime error
+
+// No MIME.
+import 'data:;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// 02: runtime error
+
+// Wrong charset.
+import 'data:application/dart;charset=utf-16,foo%28%29%20%3D%3E%2042%3B'; /// 03: runtime error
+
+// No charset.
+import 'data:application/dart,foo%28%29%20%3D%3E%2042%3B'; /// 04: runtime error
+
+// Bad encoding.
+import 'data:application/dart;charset=utf-8,foo?%9g'; /// 05: runtime error
+
+// Wrong encoding.
+import 'data:application/dart;charset=utf-8;base64,Zm9vKCkgPT4gNDI7'; /// 06: runtime error
+
+main() {
+}
« no previous file with comments | « runtime/bin/vmservice/loader.dart ('k') | runtime/tests/vm/dart/data_uri_import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698