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

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

Issue 11419300: Dartifying dart:html type names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Unminifying & fixing Stephen's feedback. Created 8 years 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 | « tests/html/exceptions_test.dart ('k') | tests/html/html.status » ('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_config.dart'; 3 import '../../pkg/unittest/lib/html_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 }
11 11
12 DOMFileSystem fs; 12 FileSystem fs;
13 13
14 main() { 14 main() {
15 useHtmlConfiguration(); 15 useHtmlConfiguration();
16 test('getFileSystem', () { 16 test('getFileSystem', () {
17 window.webkitRequestFileSystem(LocalWindow.TEMPORARY, 100, expectAsync1( 17 window.webkitRequestFileSystem(LocalWindow.TEMPORARY, 100, expectAsync1(
18 (DOMFileSystem fileSystem) { 18 (FileSystem fileSystem) {
19 fs = fileSystem; 19 fs = fileSystem;
20 }), 20 }),
21 (e) { 21 (e) {
22 fail('Got file error: ${e.code}'); 22 fail('Got file error: ${e.code}');
23 }); 23 });
24 }); 24 });
25 group('getDirectory', () { 25 group('getDirectory', () {
26 26
27 test('directoryDoesntExist', () { 27 test('directoryDoesntExist', () {
28 fs.root.getDirectory( 28 fs.root.getDirectory(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 successCallback: expectAsync1((FileEntry e) { 70 successCallback: expectAsync1((FileEntry e) {
71 expect(e.name, equals('file4')); 71 expect(e.name, equals('file4'));
72 expect(e.isFile, isTrue); 72 expect(e.isFile, isTrue);
73 }), 73 }),
74 errorCallback: (e) { 74 errorCallback: (e) {
75 fail('Got file error: ${e.code}'); 75 fail('Got file error: ${e.code}');
76 }); 76 });
77 }); 77 });
78 }); 78 });
79 } 79 }
OLDNEW
« no previous file with comments | « tests/html/exceptions_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698