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

Unified Diff: dart/tools/testing/dart/test_controller.js

Issue 85853002: Print events only to the console and never to the DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_controller.js
diff --git a/dart/tools/testing/dart/test_controller.js b/dart/tools/testing/dart/test_controller.js
index 1b0354687ff0a7b479532b3c2c05d381bd258331..e4acf73e8661a3c9a0e8757dedb2688eac2c1bf9 100644
--- a/dart/tools/testing/dart/test_controller.js
+++ b/dart/tools/testing/dart/test_controller.js
@@ -74,9 +74,7 @@ function printToDOM(message) {
function printToConsole(message) {
var consoleAvailable = typeof console === 'object';
- if (!consoleAvailable) {
- printToDOM(message);
- } else {
+ if (consoleAvailable) {
console.log(message);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698