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

Side by Side Diff: test/testing.dart

Issue 49223002: fix webui for sdk 0.8.7 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « test/run_all.dart ('k') | no next file » | 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 /** Common definitions used for setting up the test environment. */ 5 /** Common definitions used for setting up the test environment. */
6 library testing; 6 library testing;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 Future readTextOrBytes(String filename) => readText(filename); 97 Future readTextOrBytes(String filename) => readText(filename);
98 98
99 Future<String> readText(String path) { 99 Future<String> readText(String path) {
100 readCount[path] = readCount.putIfAbsent(path, () => 0) + 1; 100 readCount[path] = readCount.putIfAbsent(path, () => 0) + 1;
101 var file = _files[path]; 101 var file = _files[path];
102 if (file != null) { 102 if (file != null) {
103 return new Future.value(file); 103 return new Future.value(file);
104 } else { 104 } else {
105 return new Future.error( 105 return new Future.error(
106 new FileException('MockFileSystem: $path not found')); 106 new FileSystemException('MockFileSystem: $path not found'));
107 } 107 }
108 } 108 }
109 109
110 // Compiler doesn't call these 110 // Compiler doesn't call these
111 void writeString(String outfile, String text) {} 111 void writeString(String outfile, String text) {}
112 Future flush() {} 112 Future flush() {}
113 } 113 }
OLDNEW
« no previous file with comments | « test/run_all.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698