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

Unified Diff: tests/html/fileapi_test.dart

Issue 92253003: Attempting to de-flake the fileapi_test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/fileapi_test.dart
diff --git a/tests/html/fileapi_test.dart b/tests/html/fileapi_test.dart
index 47f06959b082a4de102f4ab3833d86d778833c31..b276e76322a5d92ad628833786bdcd5c09969abc 100644
--- a/tests/html/fileapi_test.dart
+++ b/tests/html/fileapi_test.dart
@@ -92,12 +92,12 @@ main() {
// Do the boilerplate to get several files and directories created to then
// test the functions that use those items.
- Future doDirSetup() {
+ Future doDirSetup(String testName) {
return fs.root.createFile(
- 'file4')
+ 'file_$testName')
.then((FileEntry file) {
return fs.root.createDirectory(
- 'directory3')
+ 'dir_$testName')
.then((DirectoryEntry dir) {
return new Future.value(new FileAndDir(file, dir));
});
@@ -109,7 +109,7 @@ main() {
test('getFileSystem', getFileSystem);
test('readEntries', () {
- return doDirSetup()
+ return doDirSetup('readEntries')
.then((fileAndDir) {
var reader = fileAndDir.dir.createReader();
return reader.readEntries();
@@ -125,7 +125,7 @@ main() {
test('getFileSystem', getFileSystem);
test('copyTo', () {
- return doDirSetup()
+ return doDirSetup('copyTo')
.then((fileAndDir) {
return fileAndDir.file.copyTo(fileAndDir.dir, name: 'copiedFile');
}).then((entry) {
@@ -135,7 +135,7 @@ main() {
});
test('getParent', () {
- return doDirSetup()
+ return doDirSetup('getParent')
.then((fileAndDir) {
return fileAndDir.file.getParent();
}).then((entry) {
@@ -145,12 +145,12 @@ main() {
});
test('moveTo', () {
- return doDirSetup()
+ return doDirSetup('moveTo')
.then((fileAndDir) {
return fileAndDir.file.moveTo(fileAndDir.dir, name: 'movedFile');
}).then((entry) {
expect(entry.name, 'movedFile');
- expect(entry.fullPath, '/directory3/movedFile');
+ expect(entry.fullPath, '/dir_moveTo/movedFile');
return fs.root.getFile('file4');
}).catchError((error) {
expect(error.code, equals(FileError.NOT_FOUND_ERR));
@@ -158,7 +158,7 @@ main() {
});
test('remove', () {
- return doDirSetup()
+ return doDirSetup('remove')
.then((fileAndDir) {
return fileAndDir.file.remove().then((_) {});
});
@@ -171,7 +171,7 @@ main() {
test('getFileSystem', getFileSystem);
test('createWriter', () {
- return doDirSetup()
+ return doDirSetup('createWriter')
.then((fileAndDir) {
return fileAndDir.file.createWriter();
}).then((writer) {
@@ -182,7 +182,7 @@ main() {
});
test('file', () {
- return doDirSetup()
+ return doDirSetup('file')
.then((fileAndDir) {
return fileAndDir.file.file()
.then((fileObj) {
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698