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

Unified Diff: utils/dartdoc/html_renderer.dart

Issue 9147058: Hook up the dartdoc tests to test.py, test.dart, and frog/presubmit.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
Index: utils/dartdoc/html_renderer.dart
diff --git a/utils/dartdoc/html_renderer.dart b/utils/dartdoc/html_renderer.dart
index ec4bebb1d00316bb270b484f635f59d5fdfe4490..1665d86aebe7a85cc3e8c0a78e52ce0b8f80fc83 100644
--- a/utils/dartdoc/html_renderer.dart
+++ b/utils/dartdoc/html_renderer.dart
@@ -34,7 +34,10 @@ class HtmlRenderer implements NodeVisitor {
buffer.add('<${element.tag}');
- for (final name in element.attributes.getKeys()) {
+ // Sort the keys so that we generate stable output.
+ final attributeNames = new List.from(element.attributes.getKeys());
Jennifer Messerly 2012/01/11 19:15:10 Frog has an "orderValuesByKeys" method we use when
Bob Nystrom 2012/01/11 21:28:47 Dartdoc is coupled to frog but this little markdow
+ attributeNames.sort((a, b) => a.compareTo(b));
+ for (final name in attributeNames) {
buffer.add(' $name="${element.attributes[name]}"');
}

Powered by Google App Engine
This is Rietveld 408576698