| OLD | NEW |
| 1 library dromaeo_test; | 1 library dromaeo_test; |
| 2 | 2 |
| 3 import 'dart:html'; | 3 import 'dart:html'; |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import "dart:convert"; | 5 import "dart:convert"; |
| 6 import 'dart:math' as Math; | 6 import 'dart:math' as Math; |
| 7 import 'Suites.dart'; | 7 import 'Suites.dart'; |
| 8 | 8 |
| 9 main() { | 9 main() { |
| 10 new Dromaeo().run(); | 10 new Dromaeo().run(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 final originUrl = _suiteDescription.origin.url; | 70 final originUrl = _suiteDescription.origin.url; |
| 71 final testUrl = '${_suiteDescription.file}'; | 71 final testUrl = '${_suiteDescription.file}'; |
| 72 div.innerHtml = | 72 div.innerHtml = |
| 73 '${div.innerHtml}<p>${description}<br/><a href="${originUrl}">Origin</a' | 73 '${div.innerHtml}<p>${description}<br/><a href="${originUrl}">Origin</a' |
| 74 '>, <a href="${testUrl}">Source</a>' | 74 '>, <a href="${testUrl}">Source</a>' |
| 75 '<ol class="results"></ol>'; | 75 '<ol class="results"></ol>'; |
| 76 // Reread the element, as the previous wrapper get disconnected thanks | 76 // Reread the element, as the previous wrapper get disconnected thanks |
| 77 // to .innerHtml update above. | 77 // to .innerHtml update above. |
| 78 _element = div.nodes[0]; | 78 _element = div.nodes[0]; |
| 79 | 79 |
| 80 document.query('#main').nodes.add(div); | 80 document.querySelector('#main').nodes.add(div); |
| 81 } | 81 } |
| 82 | 82 |
| 83 DivElement _createDiv(String clazz) { | 83 DivElement _createDiv(String clazz) { |
| 84 final div = new DivElement(); | 84 final div = new DivElement(); |
| 85 div.attributes['class'] = clazz; | 85 div.attributes['class'] = clazz; |
| 86 return div; | 86 return div; |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 class Dromaeo { | 90 class Dromaeo { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 return loading; | 214 return loading; |
| 215 } | 215 } |
| 216 | 216 |
| 217 _css(Element element, String property, String value) { | 217 _css(Element element, String property, String value) { |
| 218 // TODO(antonm): remove the last argument when CallWithDefaultValue | 218 // TODO(antonm): remove the last argument when CallWithDefaultValue |
| 219 // is implemented. | 219 // is implemented. |
| 220 element.style.setProperty(property, value, ''); | 220 element.style.setProperty(property, value, ''); |
| 221 } | 221 } |
| 222 | 222 |
| 223 Element _byId(String id) { | 223 Element _byId(String id) { |
| 224 return document.query('#$id'); | 224 return document.querySelector('#$id'); |
| 225 } | 225 } |
| 226 | 226 |
| 227 int get _suitesTotal { | 227 int get _suitesTotal { |
| 228 return _suiteControllers.length; | 228 return _suiteControllers.length; |
| 229 } | 229 } |
| 230 } | 230 } |
| OLD | NEW |