| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of layout_tests; | 5 part of layout_tests; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * An app for testing the grid layout system. | 8 * An app for testing the grid layout system. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 window.console.log(sb.toString()); | 119 window.console.log(sb.toString()); |
| 120 }); | 120 }); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void _appendMetrics(StringBuffer sb, Element node, [String indent = '']) { | 123 void _appendMetrics(StringBuffer sb, Element node, [String indent = '']) { |
| 124 String id = node.id; | 124 String id = node.id; |
| 125 num left = node.offsetLeft, top = node.offsetTop; | 125 num left = node.offsetLeft, top = node.offsetTop; |
| 126 num width = node.offsetWidth, height = node.offsetHeight; | 126 num width = node.offsetWidth, height = node.offsetHeight; |
| 127 sb.write("${indent}'$id': [$left, $top, $width, $height],\n"); | 127 sb.write("${indent}'$id': [$left, $top, $width, $height],\n"); |
| 128 } | 128 } |
| OLD | NEW |