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

Unified Diff: pkg/unittest/interactive_html_config.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « pkg/unittest/core_matchers.dart ('k') | pkg/unittest/mock.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/interactive_html_config.dart
===================================================================
--- pkg/unittest/interactive_html_config.dart (revision 11633)
+++ pkg/unittest/interactive_html_config.dart (working copy)
@@ -21,12 +21,12 @@
/** The messages exchanged between master and slave. */
class _Message {
- static final START = 'start';
- static final LOG = 'log';
- static final STACK = 'stack';
- static final PASS = 'pass';
- static final FAIL = 'fail';
- static final ERROR = 'error';
+ static const START = 'start';
+ static const LOG = 'log';
+ static const STACK = 'stack';
+ static const PASS = 'pass';
+ static const FAIL = 'fail';
+ static const ERROR = 'error';
String messageType;
int elapsed;
@@ -243,7 +243,7 @@
window.on.message.add(_messageHandler);
}
- static final _notAlphaNumeric = const RegExp('[^a-z0-9A-Z]');
+ static const _notAlphaNumeric = const RegExp('[^a-z0-9A-Z]');
String _stringToDomId(String s) {
if (s.length == 0) {
@@ -253,11 +253,11 @@
}
// Used for DOM element IDs for tests result list entries.
- static final _testIdPrefix = 'test-';
+ static const _testIdPrefix = 'test-';
// Used for DOM element IDs for test log message lists.
- static final _actionIdPrefix = 'act-';
+ static const _actionIdPrefix = 'act-';
// Used for DOM element IDs for test checkboxes.
- static final _selectedIdPrefix = 'selected-';
+ static const _selectedIdPrefix = 'selected-';
void onTestStart(TestCase testCase) {
var id = testCase.id;
« no previous file with comments | « pkg/unittest/core_matchers.dart ('k') | pkg/unittest/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698