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

Unified Diff: sdk/lib/_internal/pub/test/build/ignores_existing_compiled_js_files_test.dart

Issue 485893008: Cautionary tale about optimizing path manipulation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comments. Created 6 years, 4 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
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/package.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/build/ignores_existing_compiled_js_files_test.dart
diff --git a/sdk/lib/_internal/pub/test/build/ignores_existing_compiled_js_files_test.dart b/sdk/lib/_internal/pub/test/build/ignores_existing_compiled_js_files_test.dart
deleted file mode 100644
index 56d544a55d111ab0d89194a2a4bf0bdf0920b063..0000000000000000000000000000000000000000
--- a/sdk/lib/_internal/pub/test/build/ignores_existing_compiled_js_files_test.dart
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'package:scheduled_test/scheduled_test.dart';
-
-import '../descriptor.dart' as d;
-import '../test_pub.dart';
-
-main() {
- initConfig();
-
- integration("ignores existing JS files that were compiled to Dart", () {
- // Dart2js can take a long time to compile dart code, so we increase the
- // timeout to cope with that.
- currentSchedule.timeout *= 3;
-
- d.dir(appPath, [
- d.appPubspec(),
- d.dir('web', [
- d.file('file.dart', 'void main() => print("hello");'),
- d.file('file.dart.js', 'some js code'),
- d.file('file.dart.js.map', 'source map'),
- d.file('file.dart.precompiled.js', 'some js code'),
- d.dir('subdir', [
- d.file('subfile.dart', 'void main() => print("ping");'),
- d.file('subfile.dart.js', 'some js code'),
- d.file('subfile.dart.js.map', 'source map'),
- d.file('subfile.dart.precompiled.js', 'some js code')
- ])
- ])
- ]).create();
-
- schedulePub(args: ["build", "--mode", "debug"],
- output: new RegExp(r'Built \d+ files to "build".'));
-
- d.dir(appPath, [
- d.dir('build', [
- d.dir('web', [
- d.matcherFile('file.dart.js', isNot(equals('some js code'))),
- d.matcherFile('file.dart.js.map', isNot(equals('source map'))),
- d.matcherFile('file.dart.precompiled.js',
- isNot(equals('some js code'))),
- d.dir('subdir', [
- d.matcherFile('subfile.dart.js', isNot(equals('some js code'))),
- d.matcherFile('subfile.dart.js.map', isNot(equals('source map'))),
- d.matcherFile('subfile.dart.precompiled.js',
- isNot(equals('some js code')))
- ])
- ])
- ])
- ]).validate();
- });
-}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/package.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698