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>
diff --git a/tests/web/wasm/uri_base_test.dart b/tests/web/wasm/uri_base_test.dart
index 74c4252..8e8b78d 100644
--- a/tests/web/wasm/uri_base_test.dart
+++ b/tests/web/wasm/uri_base_test.dart
@@ -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');
 }
diff --git a/tests/web/web.status b/tests/web/web.status
index 0724a8e..4a3bb8c 100644
--- a/tests/web/web.status
+++ b/tests/web/web.status
@@ -68,7 +68,6 @@
 [ $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.