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

Side by Side Diff: tests/html/fileapi_test.dart

Issue 12330174: Revert "Revert "Converting dart:html to use DateTime rather than Date."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | tests/html/input_element_test.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 library fileapi; 1 library fileapi;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_individual_config.dart'; 3 import '../../pkg/unittest/lib/html_individual_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 5
6 void fail(message) { 6 void fail(message) {
7 guardAsync(() { 7 guardAsync(() {
8 expect(false, isTrue, reason: message); 8 expect(false, isTrue, reason: message);
9 }); 9 });
10 } 10 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 })); 85 }));
86 }); 86 });
87 87
88 test('fileCreate', () { 88 test('fileCreate', () {
89 fs.root.getFile( 89 fs.root.getFile(
90 'file4', 90 'file4',
91 options: {'create': true}, 91 options: {'create': true},
92 successCallback: expectAsync1((FileEntry e) { 92 successCallback: expectAsync1((FileEntry e) {
93 expect(e.name, equals('file4')); 93 expect(e.name, equals('file4'));
94 expect(e.isFile, isTrue); 94 expect(e.isFile, isTrue);
95
96 // Bug 8836 Re-enable once Dartium supports DateTime properties.
97 //e.getMetadata(expectAsync1((Metadata metadata) {
98 // var changeTime = metadata.modificationTime;
99 // expect(new DateTime.now().difference(changeTime).inSeconds,
100 // lessThan(60));
101 //}));
95 }), 102 }),
96 errorCallback: (e) { 103 errorCallback: (e) {
97 fail('Got file error: ${e.code}'); 104 fail('Got file error: ${e.code}');
98 }); 105 });
99 }); 106 });
100 } 107 }
101 }); 108 });
102 } 109 }
OLDNEW
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | tests/html/input_element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698