Skip to content

Commit a4c6d82

Browse files
committed
update asset generator test
1 parent bb4a83b commit a4c6d82

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test_common/test/sdk_asset_generator_test.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ void main() {
2020

2121
late Directory tempDir;
2222
late String sdkDirectory;
23-
late String sdkSummaryPath;
2423
late String compilerWorkerPath;
2524

2625
// Missing assets
27-
late String sdkFullDillPath;
2826
late String amdSdkJsPath;
2927
late String amdSdkJsMapPath;
3028
late String ddcSdkJsPath;
@@ -37,20 +35,17 @@ void main() {
3735
sdkDirectory = tempDir.path;
3836
final copySdkLayout = TestSdkLayout.createDefault(sdkDirectory);
3937

40-
sdkSummaryPath = copySdkLayout.summaryPath;
4138
compilerWorkerPath = copySdkLayout.dartdevcSnapshotPath;
4239

4340
// Copy the SDK directory into a temp directory.
4441
await copyDirectory(TestSdkLayout.defaultSdkDirectory, sdkDirectory);
4542

4643
// Simulate missing assets.
47-
sdkFullDillPath = copySdkLayout.fullDillPath;
4844
amdSdkJsPath = copySdkLayout.amdJsPath;
4945
amdSdkJsMapPath = copySdkLayout.amdJsMapPath;
5046
ddcSdkJsPath = copySdkLayout.ddcJsPath;
5147
ddcSdkJsMapPath = copySdkLayout.ddcJsMapPath;
5248

53-
_deleteIfExists(sdkFullDillPath);
5449
_deleteIfExists(amdSdkJsPath);
5550
_deleteIfExists(amdSdkJsMapPath);
5651
_deleteIfExists(ddcSdkJsPath);
@@ -79,8 +74,6 @@ void main() {
7974
expect(configuration.sdkDirectory, equals(sdkDirectory));
8075
expect(configuration.compilerWorkerPath, equals(compilerWorkerPath));
8176

82-
expect(sdkLayout.summaryPath, equals(sdkSummaryPath));
83-
expect(sdkLayout.fullDillPath, equals(sdkFullDillPath));
8477
expect(sdkLayout.amdJsPath, equals(amdSdkJsPath));
8578
expect(sdkLayout.amdJsMapPath, equals(amdSdkJsMapPath));
8679

@@ -89,8 +82,6 @@ void main() {
8982
configuration.validate();
9083

9184
// Validate all assets exist.
92-
expect(sdkLayout.summaryPath, _exists);
93-
expect(sdkLayout.fullDillPath, _exists);
9485
expect(sdkLayout.amdJsPath, _exists);
9586
expect(sdkLayout.amdJsMapPath, _exists);
9687
});
@@ -113,8 +104,6 @@ void main() {
113104
expect(configuration.sdkDirectory, equals(sdkDirectory));
114105
expect(configuration.compilerWorkerPath, equals(compilerWorkerPath));
115106

116-
expect(sdkLayout.summaryPath, equals(sdkSummaryPath));
117-
expect(sdkLayout.fullDillPath, equals(sdkFullDillPath));
118107
expect(sdkLayout.ddcJsPath, equals(ddcSdkJsPath));
119108
expect(sdkLayout.ddcJsMapPath, equals(ddcSdkJsMapPath));
120109

@@ -123,8 +112,6 @@ void main() {
123112
configuration.validate();
124113

125114
// Validate all assets exist.
126-
expect(sdkLayout.summaryPath, _exists);
127-
expect(sdkLayout.fullDillPath, _exists);
128115
expect(sdkLayout.ddcJsPath, _exists);
129116
expect(sdkLayout.ddcJsMapPath, _exists);
130117
});

0 commit comments

Comments
 (0)