Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: tests/lib/mirrors/mirrors_test.dart

Issue 582753002: dart2js: add --preserve-uris flag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update tests. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/mirrors/library_uri_package_test.dart ('k') | tests/lib/mirrors/null_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/mirrors_test.dart
diff --git a/tests/lib/mirrors/mirrors_test.dart b/tests/lib/mirrors/mirrors_test.dart
index a08362274c501616863e57a57c2f90834f2cdc45..a821c991302670917d61f931692f8b48fc0da881 100644
--- a/tests/lib/mirrors/mirrors_test.dart
+++ b/tests/lib/mirrors/mirrors_test.dart
@@ -206,7 +206,12 @@ testLibraryUri(var value, bool check(Uri)) {
var valueMirror = reflect(value);
ClassMirror valueClass = valueMirror.type;
LibraryMirror valueLibrary = valueClass.owner;
- expect(check(valueLibrary.uri), isTrue);
+ Uri uri = valueLibrary.uri;
+ if (uri.scheme != "https" ||
+ uri.host != "dartlang.org" ||
+ uri.path != "/dart2js-stripped-uri") {
+ expect(check(uri), isTrue);
+ }
}
main() {
« no previous file with comments | « tests/lib/mirrors/library_uri_package_test.dart ('k') | tests/lib/mirrors/null_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698