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

Unified Diff: pkg/intl/test/date_time_format_test_core.dart

Issue 10961061: migrate raw string to new syntax in pkg (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « pkg/intl/lib/src/date_format_helpers.dart ('k') | pkg/intl/test/find_default_locale_browser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/date_time_format_test_core.dart
===================================================================
--- pkg/intl/test/date_time_format_test_core.dart (revision 12745)
+++ pkg/intl/test/date_time_format_test_core.dart (working copy)
@@ -281,21 +281,21 @@
test('Test explicit format string', () {
var aDate = new Date(2012, 1, 27, 20, 58, 59, 0, false);
// An explicit format that doesn't conform to any skeleton
- var us = new DateFormat(@'yy //// :D \\\\ dd:ss ^&@ M');
- expect(us.format(aDate), equals(@"12 //// :D \\\\ 27:59 ^&@ 1"));
+ var us = new DateFormat(r'yy //// :D \\\\ dd:ss ^&@ M');
+ expect(us.format(aDate), equals(r"12 //// :D \\\\ 27:59 ^&@ 1"));
// The result won't change with locale unless we use fields that are words.
- var greek = new DateFormat(@'yy //// :D \\\\ dd:ss ^&@ M', 'el_GR');
- expect(greek.format(aDate), equals(@"12 //// :D \\\\ 27:59 ^&@ 1"));
+ var greek = new DateFormat(r'yy //// :D \\\\ dd:ss ^&@ M', 'el_GR');
+ expect(greek.format(aDate), equals(r"12 //// :D \\\\ 27:59 ^&@ 1"));
var usWithWords = new DateFormat('yy / :D \\ dd:ss ^&@ MMM', 'en_US');
var greekWithWords = new DateFormat('yy / :D \\ dd:ss ^&@ MMM', 'el_GR');
expect(
usWithWords.format(aDate),
- equals(@"12 / :D \ 27:59 ^&@ Jan"));
+ equals(r"12 / :D \ 27:59 ^&@ Jan"));
expect(
greekWithWords.format(aDate),
- equals(@"12 / :D \ 27:59 ^&@ Ιαν"));
- var escaped = new DateFormat(@"hh 'o''clock'");
- expect(escaped.format(aDate), equals(@"08 o'clock"));
+ equals(r"12 / :D \ 27:59 ^&@ Ιαν"));
+ var escaped = new DateFormat(r"hh 'o''clock'");
+ expect(escaped.format(aDate), equals(r"08 o'clock"));
var reParsed = escaped.parse(escaped.format(aDate));
expect(escaped.format(reParsed), equals(escaped.format(aDate)));
var noSeparators = new DateFormat('HHmmss');
« no previous file with comments | « pkg/intl/lib/src/date_format_helpers.dart ('k') | pkg/intl/test/find_default_locale_browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698