| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Wrong MIME. | 5 import 'data:text/plain;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// wrongmim
e: ok |
| 6 import 'data:text/plain;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// 01: runt
ime error | 6 import 'data:;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// nomime: ok |
| 7 | 7 import 'data:application/dart;charset=utf-16,foo%28%29%20%3D%3E%2042%3B'; /// u
tf16: runtime error |
| 8 // No MIME. | 8 import 'data:application/dart,foo%28%29%20%3D%3E%2042%3B'; /// nocharset: ok |
| 9 import 'data:;charset=utf-8,foo%28%29%20%3D%3E%2042%3B'; /// 02: runtime error | 9 import 'data:application/dart;charset=utf-8,foo?%9g'; /// badencodeddate: runti
me error |
| 10 | 10 import 'data:application/dart;charset=utf-8;base64,Zm9vKCkgPT4gNDI7'; /// base6
4: ok |
| 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 | 11 |
| 23 main() { | 12 main() { |
| 24 } | 13 } |
| OLD | NEW |