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

Unified Diff: pkg/analyzer/test/file_system/memory_file_system_test.dart

Issue 2397813002: Fix context comparisons (Closed)
Patch Set: fixed more cases Created 4 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 | « pkg/analyzer/lib/src/dart/sdk/sdk.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/file_system/memory_file_system_test.dart
diff --git a/pkg/analyzer/test/file_system/memory_file_system_test.dart b/pkg/analyzer/test/file_system/memory_file_system_test.dart
index ddfd74ab7698347dc9c0ef926d849467b6ec4a00..40c04e21101496a41214640b401b9d47689bcfcb 100644
--- a/pkg/analyzer/test/file_system/memory_file_system_test.dart
+++ b/pkg/analyzer/test/file_system/memory_file_system_test.dart
@@ -465,7 +465,7 @@ class MemoryFileSourceExistingTest {
void test_encoding() {
String expected = 'file:///foo/test.dart';
- if (provider.pathContext == windows) {
+ if (provider.pathContext.style == windows.style) {
expected = 'file:///C:/foo/test.dart';
}
expect(source.encoding, expected);
@@ -552,7 +552,7 @@ class MemoryFileSourceNotExistingTest {
void test_encoding() {
String expected = 'file:///foo/test.dart';
- if (provider.pathContext == windows) {
+ if (provider.pathContext.style == windows.style) {
expected = 'file:///C:/foo/test.dart';
}
expect(source.encoding, expected);
« no previous file with comments | « pkg/analyzer/lib/src/dart/sdk/sdk.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698