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

Side by Side 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: add negative tests, make multitest understand data uris, fix test in checked mode 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Wrong MIME.
6 import 'data:text/plain;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// 01: runt ime error
7
8 // No MIME.
9 import 'data:;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// 02: runtime error
10
11 // Wrong charset.
12 import 'data:application/dart;charset=utf-16,foo%28%29%20%3D%3E%2042%3B'; /// 0 3: runtime error
13
14 // No charset.
15 import 'data:application/dart,foo%28%29%20%3D%3E%2042%3B'; /// 04: runtime erro r
16
17 // Bad encoding.
18 import 'data:application/dart;charset=utf-8,foo?%9g'; /// 05: runtime error
19
20 // Wrong encoding.
21 import 'data:application/dart;charset=utf-8;base64,Zm9vKCkgPT4gNDI7'; /// 06: r untime error
22
23 main() {
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698