forked from firka/flutter
Revert "Fix Platform.script for flutter_tester" (flutter/engine#46981)
This reverts commit 670b5bd8e7.
With https://github.com/flutter/engine/pull/46911, the Platform.script API will return a URI for the compiled temporary wrapper script generated by "flutter test". This will cause issues for tests that expect Platform.script to reflect the directory where "flutter test" was launched.
This commit is contained in:
@@ -526,7 +526,6 @@ int main(int argc, char* argv[]) {
|
||||
// it as a positional argument instead.
|
||||
settings.application_kernel_asset = command_line.positional_args()[0];
|
||||
}
|
||||
settings.advisory_script_uri = settings.application_kernel_asset;
|
||||
|
||||
if (settings.application_kernel_asset.empty()) {
|
||||
FML_LOG(ERROR) << "Dart kernel file not specified.";
|
||||
|
||||
@@ -38,7 +38,6 @@ tests = [
|
||||
"paragraph_test.dart",
|
||||
"path_test.dart",
|
||||
"picture_test.dart",
|
||||
"platform_test.dart",
|
||||
"platform_view_test.dart",
|
||||
"plugin_utilities_test.dart",
|
||||
"semantics_test.dart",
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:litetest/litetest.dart';
|
||||
|
||||
void main() {
|
||||
test('Platform.script has right URI', () async {
|
||||
// Platform.script should look like file:///path/to/engine/src/out/variant/gen/platform_test.dart.dill
|
||||
expect(Platform.script.path, endsWith('gen/platform_test.dart.dill'));
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user