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

Unified Diff: pkg/unittest/lib/html_config.dart

Issue 12890002: Tweaking html_config to stabilize location test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/html_config.dart
diff --git a/pkg/unittest/lib/html_config.dart b/pkg/unittest/lib/html_config.dart
index 7fa56f2bbd2a92d2f84f2cfdb1c3b5c876b510ab..24d15bcb2fac993203cc9fac2f19c9b9c19238dd 100644
--- a/pkg/unittest/lib/html_config.dart
+++ b/pkg/unittest/lib/html_config.dart
@@ -53,7 +53,10 @@ void _showResultsInPage(int passed, int failed, int errors,
document.body.innerHtml = newBody.toString();
window.onHashChange.listen((_) {
- window.location.reload();
+ if (window.location.hash != null &&
+ window.location.hash.contains('testFilter')) {
gram 2013/03/15 16:51:41 Again, please add a comment.
+ window.location.reload();
+ }
});
}
}
« 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