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:
Jason Simmons
2023-10-16 18:07:02 -07:00
committed by GitHub
parent 7cbcff6ac6
commit 91cf2a899f
3 changed files with 0 additions and 16 deletions

View File

@@ -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.";

View File

@@ -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",

View File

@@ -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'));
});
}