Enable Hot Reload on Windows (backed by gen_snapshot) (#8512)
* Enable Hot Reload on Windows (backed by gen_snapshot) \o/ Two caveats: * Hot Reload on Windows is slower than on other platforms because gen_snapshot is slower then sky_snapshot * We currently cannot hot reload projects with spaces in the path * enable tests
This commit is contained in:
committed by
GitHub
parent
55e10a6630
commit
d579d58702
@@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:flutter_tools/src/dart/dependencies.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/platform.dart';
|
||||
@@ -12,7 +10,7 @@ import 'src/context.dart';
|
||||
|
||||
void main() {
|
||||
group('DartDependencySetBuilder', () {
|
||||
final String basePath = fs.path.dirname(platform.script.path);
|
||||
final String basePath = fs.path.dirname(fs.path.fromUri(platform.script));
|
||||
final String dataPath = fs.path.join(basePath, 'data', 'dart_dependencies_test');
|
||||
testUsingContext('good', () {
|
||||
final String testPath = fs.path.join(dataPath, 'good');
|
||||
@@ -38,5 +36,5 @@ void main() {
|
||||
expect(e.contains('unexpected token \'bad\''), isTrue);
|
||||
}
|
||||
});
|
||||
}, skip: io.Platform.isWindows); // TODO(goderbauer): enable when sky_snapshot is available
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/platform.dart';
|
||||
@@ -56,7 +54,7 @@ void main() {
|
||||
// Set 'package:self/bar.dart' file modification time to be in the future.
|
||||
updateFileModificationTime(barPath, baseTime, 10);
|
||||
expect(dependencyChecker.check(baseTime), isTrue);
|
||||
}, skip: io.Platform.isWindows); // TODO(goderbauer): enable when sky_snapshot is ready on Windows
|
||||
});
|
||||
|
||||
testUsingContext('syntax error', () {
|
||||
final String testPath = fs.path.join(dataPath, 'syntax_error');
|
||||
|
||||
Reference in New Issue
Block a user