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

Side by Side Diff: utils/tests/pub/yaml_test.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | utils/tests/template/real_app.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library yaml_test; 5 library yaml_test;
6 6
7 import '../../../pkg/unittest/lib/unittest.dart'; 7 import '../../../pkg/unittest/lib/unittest.dart';
8 import '../../pub/yaml/yaml.dart'; 8 import '../../pub/yaml/yaml.dart';
9 import '../../pub/yaml/deep_equals.dart'; 9 import '../../pub/yaml/deep_equals.dart';
10 import '../../../tests/utils/test_utils.dart'; 10 import '../../../tests/utils/test_utils.dart';
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 "Time": "2001-11-23 15:01:42 -5", 427 "Time": "2001-11-23 15:01:42 -5",
428 "User": "ed", 428 "User": "ed",
429 "Warning": "This is an error message for the log file" 429 "Warning": "This is an error message for the log file"
430 }, 430 },
431 { 431 {
432 "Time": "2001-11-23 15:02:31 -5", 432 "Time": "2001-11-23 15:02:31 -5",
433 "User": "ed", 433 "User": "ed",
434 "Warning": "A slightly different error message." 434 "Warning": "A slightly different error message."
435 }, 435 },
436 { 436 {
437 "Date": "2001-11-23 15:03:17 -5", 437 "DateTime": "2001-11-23 15:03:17 -5",
438 "User": "ed", 438 "User": "ed",
439 "Fatal": 'Unknown variable "bar"', 439 "Fatal": 'Unknown variable "bar"',
440 "Stack": [ 440 "Stack": [
441 { 441 {
442 "file": "TopClass.py", 442 "file": "TopClass.py",
443 "line": 23, 443 "line": 23,
444 "code": 'x = MoreObject("345\\n")\n' 444 "code": 'x = MoreObject("345\\n")\n'
445 }, 445 },
446 {"file": "MoreClass.py", "line": 58, "code": "foo = bar"} 446 {"file": "MoreClass.py", "line": 58, "code": "foo = bar"}
447 ] 447 ]
448 } 448 }
449 ], 449 ],
450 """ 450 """
451 --- 451 ---
452 Time: 2001-11-23 15:01:42 -5 452 Time: 2001-11-23 15:01:42 -5
453 User: ed 453 User: ed
454 Warning: 454 Warning:
455 This is an error message 455 This is an error message
456 for the log file 456 for the log file
457 --- 457 ---
458 Time: 2001-11-23 15:02:31 -5 458 Time: 2001-11-23 15:02:31 -5
459 User: ed 459 User: ed
460 Warning: 460 Warning:
461 A slightly different error 461 A slightly different error
462 message. 462 message.
463 --- 463 ---
464 Date: 2001-11-23 15:03:17 -5 464 DateTime: 2001-11-23 15:03:17 -5
465 User: ed 465 User: ed
466 Fatal: 466 Fatal:
467 Unknown variable "bar" 467 Unknown variable "bar"
468 Stack: 468 Stack:
469 - file: TopClass.py 469 - file: TopClass.py
470 line: 23 470 line: 23
471 code: | 471 code: |
472 x = MoreObject("345\\n") 472 x = MoreObject("345\\n")
473 - file: MoreClass.py 473 - file: MoreClass.py
474 line: 58 474 line: 58
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 A null: null 1868 A null: null
1869 Also a null: # Empty 1869 Also a null: # Empty
1870 Not a null: "" 1870 Not a null: ""
1871 Booleans: [ true, True, false, FALSE ] 1871 Booleans: [ true, True, false, FALSE ]
1872 Integers: [ 0, 0o7, 0x3A, -19 ] 1872 Integers: [ 0, 0o7, 0x3A, -19 ]
1873 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] 1873 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ]
1874 Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); 1874 Also floats: [ .inf, -.Inf, +.INF, .NAN ]''');
1875 }); 1875 });
1876 }); 1876 });
1877 } 1877 }
OLDNEW
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | utils/tests/template/real_app.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698