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

Unified Diff: pkg/unittest/lib/test_controller.js

Issue 34363005: Filtering MutationObserver polyfill messages from test_controller logging (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/test_controller.js
diff --git a/pkg/unittest/lib/test_controller.js b/pkg/unittest/lib/test_controller.js
index 68b83bfe0a33f260a8ec4bcc9285d8c2b7868975..f78fbde73359ed5487ae2a447cddeb02c72b5374 100644
--- a/pkg/unittest/lib/test_controller.js
+++ b/pkg/unittest/lib/test_controller.js
@@ -89,11 +89,14 @@ function notifyDone() {
}
function processMessage(msg) {
+ if (typeof msg != 'string') return;
// TODO(ricow): REMOVE, debug info, see issue 13292
if (!testRunner) {
- printMessage('processMessage(): ' + msg);
+ // Filter out ShadowDOM polyfill messages which are random floats.
+ if (msg != parseFloat(msg)) {
+ printMessage('processMessage(): ' + msg);
+ }
}
- if (typeof msg != 'string') return;
if (msg == 'unittest-suite-done') {
notifyDone();
} else if (msg == 'unittest-suite-wait-for-done') {
« 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