Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add copyright header and remove duplicated files
  • Loading branch information
Wdestroier committed Feb 21, 2025
commit 1f2a782f5f61760a41c836c9b224cc63168dc3cd
16 changes: 0 additions & 16 deletions fixtures/_testTlsHostnameSound/pubspec.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions fixtures/_testTlsHostnameSound/web/index.html

This file was deleted.

108 changes: 0 additions & 108 deletions fixtures/_testTlsHostnameSound/web/main.dart

This file was deleted.

20 changes: 12 additions & 8 deletions webdev/test/tls_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2025, 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 'dart:io';

import 'package:collection/collection.dart';
Expand All @@ -18,27 +22,27 @@ void main() {
final debug = false;

final testRunner = TestRunner();
late String soundExampleDirectory;
late String exampleDirectory;

setUpAll(() async {
configureLogWriter(debug);
await testRunner.setUpAll();
soundExampleDirectory = p.absolute(
p.join(p.current, '..', 'fixtures', '_testTlsHostnameSound'));
exampleDirectory = p.absolute(
p.join(p.current, '..', 'fixtures', '_experimentSound'));

final process = await TestProcess.start(
'dart',
['pub', 'upgrade'],
workingDirectory: soundExampleDirectory,
workingDirectory: exampleDirectory,
environment: getPubEnvironment(),
);

await process.shouldExit(0);

await d
.file('.dart_tool/package_config.json', isNotEmpty)
.validate(soundExampleDirectory);
await d.file('pubspec.lock', isNotEmpty).validate(soundExampleDirectory);
.validate(exampleDirectory);
await d.file('pubspec.lock', isNotEmpty).validate(exampleDirectory);
});

test('listens on a loopback interface', () async {
Expand All @@ -52,7 +56,7 @@ void main() {
];

final process = await testRunner.runWebDev(args,
workingDirectory: soundExampleDirectory);
workingDirectory: exampleDirectory);
await expectLater(process.stdout, emitsThrough(contains('Succeeded')));

final client = HttpClient()
Expand Down Expand Up @@ -81,7 +85,7 @@ void main() {
];

final process = await testRunner.runWebDev(args,
workingDirectory: soundExampleDirectory);
workingDirectory: exampleDirectory);
await expectLater(process.stdout, emitsThrough(contains('Succeeded')));

final interfaces = await NetworkInterface.list(
Expand Down