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

Unified Diff: samples/tests/samples/lib/layout/grid_layout_demo.dart

Issue 11413071: Deprecating Element.elements for Element.children. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback. Created 8 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 | « samples/swipe/swipe.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/tests/samples/lib/layout/grid_layout_demo.dart
diff --git a/samples/tests/samples/lib/layout/grid_layout_demo.dart b/samples/tests/samples/lib/layout/grid_layout_demo.dart
index dd42bd3dbf957eea97a296297bb904933cef07e2..b68d0c2cd9c6d2f52ddd6a741a16f953a241a849 100644
--- a/samples/tests/samples/lib/layout/grid_layout_demo.dart
+++ b/samples/tests/samples/lib/layout/grid_layout_demo.dart
@@ -67,7 +67,7 @@ void _addColorStyles() {
final colors = const [ 'darkred', 'darkorange', 'darkgoldenrod',
'darkgreen', 'darkblue', 'darkviolet'];
int c = 0;
- var node = grid.elements[0];
+ var node = grid.children[0];
while (node != null) {
if (node.id != '') {
node.style.cssText += "color:" + colors[c++];
@@ -106,11 +106,11 @@ void printMetrics(String example) {
final sb = new StringBuffer();
sb.add("test('Spec Example $exampleId', () {\n");
sb.add(" verifyExample('$example', {\n");
- final elements = node.elements;
+ final children = node.children;
window.requestLayoutFrame(() {
- for (int i = 0; i < elements.length; i++) {
- _appendMetrics(sb, elements[i], ' ');
+ for (int i = 0; i < children.length; i++) {
+ _appendMetrics(sb, children[i], ' ');
}
sb.add(' });\n');
sb.add('});\n\n');
« no previous file with comments | « samples/swipe/swipe.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698