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

Unified Diff: tools/testing/legpad/legpad.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 | « tools/testing/dart/test_runner.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/legpad/legpad.dart
diff --git a/tools/testing/legpad/legpad.dart b/tools/testing/legpad/legpad.dart
index 0db1ffbabd80c7eb5739603ba1378c53973631fd..b6acfe74df477026ea1a1db6c0687f207739f9d0 100644
--- a/tools/testing/legpad/legpad.dart
+++ b/tools/testing/legpad/legpad.dart
@@ -42,7 +42,7 @@ class Legpad {
void diagnosticHandler(uri_lib.Uri uri, int begin, int end,
String message, bool fatal) {
warnings.add(message);
- if (uri !== null) {
+ if (uri != null) {
warnings.add(" ($uri: $begin, $end)");
}
if (fatal) {
@@ -72,7 +72,7 @@ class Legpad {
Stopwatch stopwatch = new Stopwatch()..start();
runLeg();
int elapsedMillis = stopwatch.elapsedMilliseconds;
- if (output === null) {
+ if (output == null) {
output = "throw 'dart2js compilation error';\n";
}
@@ -114,7 +114,7 @@ class Legpad {
void setText(String id, String text) {
html.Element element = html.document.query("#$id");
- if (element === null) {
+ if (element == null) {
throw new Exception("Can't find element $id");
}
element.innerHTML = htmlEscape(text);
@@ -122,7 +122,7 @@ class Legpad {
String getText(String id) {
html.Element element = html.document.query("#$id");
- if (element === null) {
+ if (element == null) {
throw new Exception("Can't find element $id");
}
return element.text.trim();
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698