Make wasm/uri_base_test run on browsers

Change-Id: I6bc542bc6b2f68e7043d4c840da26dda30faad2d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/456141
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
This commit is contained in:
Stephen Adams
2025-10-23 11:21:40 -07:00
committed by Commit Queue
parent b45cdff83a
commit 456efb510d
2 changed files with 7 additions and 2 deletions
+7 -1
View File
@@ -2,6 +2,12 @@
// 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:expect/expect.dart';
void main() {
print(Uri.base.toFilePath()); // should not crash
final base = Uri.base; // should not crash
// Tests are compiled to generated files in a directory that uses the test
// file name.
Expect.contains('uri_base_test', '$base');
}
-1
View File
@@ -68,7 +68,6 @@ dart2js/code_motion_exception_test: Skip # Required V8 specific format of JavaSc
[ $compiler == dart2wasm && $runtime != d8 ]
wasm/source_map_simple_optimized_test: SkipByDesign # Reads source map file using d8's readbuffer
wasm/source_map_simple_test: SkipByDesign # Reads source map file using d8's readbuffer
wasm/uri_base_test: SkipByDesign # Converts Uri.base to file path
[ $compiler == dart2wasm && ($runtime == d8 || $runtime == jsc || $runtime == jsshell) ]
wasm/multi_module_stress_test: SkipByDesign # DataView fails to load necessary input file.