Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 12 additions & 12 deletions .github/workflows/dart.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dwds/test/common/chrome_proxy_service_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ void runTests({
expect(
resolvedUris.uris,
containsAll([
contains('/_testSound/example/hello_world/main.dart'),
contains('/_test/example/hello_world/main.dart'),
contains('/lib/path.dart'),
contains('/lib/src/path_set.dart'),
]),
Expand Down
44 changes: 22 additions & 22 deletions dwds/test/fixtures/project.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestProject {
late Directory _fixturesCopy;

/// The top level directory in which we run the test server, e.g.
/// "/tmp/_testSound".
/// "/tmp/_test".
String get absolutePackageDirectory =>
p.join(_fixturesCopy.absolute.path, packageDirectory);

Expand All @@ -39,7 +39,7 @@ class TestProject {
}

/// The path to the Dart entry file, e.g,
/// "/tmp/_testSound/example/hello_world/main.dart":
/// "/tmp/_test/example/hello_world/main.dart":
String get dartEntryFilePath => p.joinAll([
_fixturesCopy.absolute.path,
packageDirectory,
Expand All @@ -61,67 +61,67 @@ class TestProject {

TestProject.testPackage({IndexBaseMode baseMode = IndexBaseMode.noBase})
: this._(
packageName: '_test_package_sound',
packageDirectory: '_testPackageSound',
packageName: '_test_package',
packageDirectory: '_test_package',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName:
baseMode == IndexBaseMode.base ? 'base_index.html' : 'index.html',
);

static final testCircular1 = TestProject._(
packageName: '_test_circular1_sound',
packageDirectory: '_testCircular1Sound',
packageName: '_test_circular1',
packageDirectory: '_test_circular1',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
);

TestProject.testCircular2({IndexBaseMode baseMode = IndexBaseMode.noBase})
: this._(
packageName: '_test_circular2_sound',
packageDirectory: '_testCircular2Sound',
packageName: '_test_circular2',
packageDirectory: '_test_circular2',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName:
baseMode == IndexBaseMode.base ? 'base_index.html' : 'index.html',
);

static final test = TestProject._(
packageName: '_test_sound',
packageDirectory: '_testSound',
packageName: '_test',
packageDirectory: '_test',
webAssetsPath: 'example/hello_world',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
);

static final testScopes = TestProject._(
packageName: '_test_sound',
packageDirectory: '_testSound',
packageName: '_test',
packageDirectory: '_test',
webAssetsPath: webCompatiblePath(['example', 'scopes']),
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'scopes.html',
);

static final testAppendBody = TestProject._(
packageName: '_test_sound',
packageDirectory: '_testSound',
packageName: '_test',
packageDirectory: '_test',
webAssetsPath: webCompatiblePath(['example', 'append_body']),
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
);

static final testExperiment = TestProject._(
packageName: '_experiment_sound',
packageDirectory: '_experimentSound',
packageName: '_experiment',
packageDirectory: '_experiment',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
);

static final testHotRestart1 = TestProject._(
packageName: '_test_hot_restart1',
packageDirectory: '_testHotRestart1Sound',
packageDirectory: '_test_hot_restart1',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
Expand All @@ -131,31 +131,31 @@ class TestProject {
/// order to test correctness when only a subset of libraries are updated.
static final testHotRestart2 = TestProject._(
packageName: '_test_hot_restart2',
packageDirectory: '_testHotRestart2Sound',
packageDirectory: '_test_hot_restart2',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
);

static final testHotRestartBreakpoints = TestProject._(
packageName: '_test_hot_restart_breakpoints',
packageDirectory: '_testHotRestartBreakpoints',
packageDirectory: '_test_hot_restart_breakpoints',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
);

static final testHotReload = TestProject._(
packageName: '_test_hot_reload',
packageDirectory: '_testHotReload',
packageDirectory: '_test_hot_reload',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
);

static final testHotReloadBreakpoints = TestProject._(
packageName: '_test_hot_reload_breakpoints',
packageDirectory: '_testHotReloadBreakpoints',
packageDirectory: '_test_hot_reload_breakpoints',
webAssetsPath: 'web',
dartEntryFileName: 'main.dart',
htmlEntryFileName: 'index.html',
Expand Down Expand Up @@ -257,7 +257,7 @@ class TestProject {
}

/// The path to the Dart specified file in the 'lib' directory, e.g,
/// "/tmp/_testSound/lib/library.dart":
/// "/tmp/_test/lib/library.dart":
String dartLibFilePath(String dartLibFileName) => p.joinAll([
_fixturesCopy.absolute.path,
packageDirectory,
Expand Down
2 changes: 1 addition & 1 deletion dwds/test/load_strategy_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void main() {
test('defaults to "./dart_tool/package_config.json"', () {
expect(
p.split(strategy.packageConfigPath).join('/'),
endsWith('_testSound/.dart_tool/package_config.json'),
endsWith('_test/.dart_tool/package_config.json'),
);
});
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: _experiment_sound
name: _experiment
version: 1.0.0
description: >-
A fake package used for testing experimental language features.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: _test_sound
name: _test
version: 1.0.0
description: >-
A fake package used for testing sound null-safety.
A fake package used for testing.
publish_to: none

environment:
Expand Down
16 changes: 0 additions & 16 deletions fixtures/_testCircular2Sound/pubspec.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// A library that we can import.
library;

import 'package:_test_circular2_sound/library2.dart';
import 'package:_test_circular2/library2.dart';

String concatenate(String a, String b) {
return '$a$b'; // Breakpoint: Concatenate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: _test_circular1_sound
name: _test_circular1
version: 1.0.0
description: >-
A fake package used for testing imports with sound null-safety with circular dependency.
A fake package used for testing imports with circular dependency.
publish_to: none

environment:
Expand All @@ -10,8 +10,8 @@ environment:
dependencies:
intl: ^0.17.0
path: ^1.6.1
_test_circular2_sound:
path: ../_testCircular2Sound
_test_circular2:
path: ../_test_circular2

dev_dependencies:
build_runner: ^2.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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:_test_circular1_sound/library1.dart';
import 'package:_test_circular1/library1.dart';

int globalValue = 0;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: _test_package_sound
name: _test_circular2
version: 1.0.0
description: >-
A fake package used for testing imports with sound null-safety. Imports _test.
A fake package used for testing imports with circular dependency.
publish_to: none

environment:
sdk: ^3.2.0

dependencies:
_test_sound:
path: ../_testSound
_test_circular1:
path: ../_test_circular1

dev_dependencies:
build_runner: ^2.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import 'dart:core';
// ignore: deprecated_member_use
import 'dart:html';

import 'package:_test_circular1_sound/library1.dart';
import 'package:_test_circular2_sound/library2.dart';
import 'package:_test_circular1/library1.dart';
import 'package:_test_circular2/library2.dart';

void main() {
// For setting breakpoints.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
intl: ^0.17.0
path: ^1.6.1
_test_hot_restart1:
path: ../_testHotRestart1Sound
path: ../_test_hot_restart1

dev_dependencies:
build_runner: ^2.5.0
Expand Down
16 changes: 16 additions & 0 deletions fixtures/_test_package/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: _test_package
version: 1.0.0
description: >-
A fake package used for testing imports. Imports _test.
publish_to: none

environment:
sdk: ^3.2.0

dependencies:
_test:
path: ../_test

dev_dependencies:
build_runner: ^2.5.0
build_web_compilers: ^4.0.4
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import 'dart:developer';
// ignore: deprecated_member_use
import 'dart:html';

import 'package:_test_package_sound/test_library.dart';
import 'package:_test_sound/deferred_library.dart' deferred as d;
import 'package:_test_sound/library.dart';
import 'package:_test_package/test_library.dart';
import 'package:_test/deferred_library.dart' deferred as d;
import 'package:_test/library.dart';

extension NumberParsing on String {
int parseInt() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: _webdev_sound_smoke
description: A test fixture for webdev testing with sound support.
name: _webdev_smoke
description: A test fixture for webdev testing.

publish_to: none

Expand Down
Loading
Loading