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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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/compiler/dart2js/metadata_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 38ddd79fafb8747590ae1fe47a1a0635a590d5ae..77a73f261a0b83d0d676a152ee90e440431c9732 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -135,7 +135,7 @@ class MockCompiler extends Compiler {
void reportMessage(SourceSpan span, var message, api.Diagnostic kind) {
var diagnostic = new WarningMessage(null, message.message);
- if (kind === api.Diagnostic.ERROR) {
+ if (kind == api.Diagnostic.ERROR) {
errors.add(diagnostic);
} else {
warnings.add(diagnostic);
@@ -183,7 +183,7 @@ class MockCompiler extends Compiler {
}
parseScript(String text, [LibraryElement library]) {
- if (library === null) library = mainApp;
+ if (library == null) library = mainApp;
parseUnit(text, this, library);
}
@@ -204,7 +204,7 @@ class MockCompiler extends Compiler {
Script readScript(Uri uri, [ScriptTag node]) {
SourceFile sourceFile = sourceFiles[uri.toString()];
- if (sourceFile === null) throw new ArgumentError(uri);
+ if (sourceFile == null) throw new ArgumentError(uri);
return new Script(uri, sourceFile);
}
}
« no previous file with comments | « tests/compiler/dart2js/metadata_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698