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

Unified Diff: sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/native_watch_replaced_file_test.dart b/sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
similarity index 69%
copy from sdk/lib/_internal/pub/test/serve/native_watch_replaced_file_test.dart
copy to sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
index 8a01ae1114a0c57218adcdf6f38d4dc5d00dd299..b25721690f0fce764f6cf15bf87bc116470fdd34 100644
--- a/sdk/lib/_internal/pub/test/serve/native_watch_replaced_file_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
@@ -18,21 +18,17 @@ main() {
// This is a regression test for http://dartbug.com/21402.
initConfig();
withBarbackVersions("any", () {
- integration("picks up files replaced after serving started when using the "
- "native watcher", () {
- d.dir(appPath, [
- d.pubspec({
+ integration(
+ "picks up files replaced after serving started when using the "
+ "native watcher",
+ () {
+ d.dir(appPath, [d.pubspec({
"name": "myapp",
"transformers": ["myapp/src/transformer"]
}),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", REWRITE_TRANSFORMER)
- ])]),
- d.dir("web", [
- d.file("file.txt", "before"),
- ]),
- d.file("other", "after")
- ]).create();
+ d.dir("lib", [d.dir("src", [d.file("transformer.dart", REWRITE_TRANSFORMER)])]),
+ d.dir("web", [d.file("file.txt", "before"),]),
+ d.file("other", "after")]).create();
createLockFile("myapp", pkg: ["barback"]);
@@ -42,8 +38,11 @@ main() {
schedule(() {
// Replace file.txt by renaming other on top of it.
- return new File(p.join(sandboxDir, appPath, "other"))
- .rename(p.join(sandboxDir, appPath, "web", "file.txt"));
+ return new File(
+ p.join(
+ sandboxDir,
+ appPath,
+ "other")).rename(p.join(sandboxDir, appPath, "web", "file.txt"));
});
// Read the transformed file to ensure the change is actually noticed by

Powered by Google App Engine
This is Rietveld 408576698