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

Side by Side Diff: client/html/benchmarks/dromaeo/Dromaeo.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 class SuiteController { 1 class SuiteController {
2 final SuiteDescription _suiteDescription; 2 final SuiteDescription _suiteDescription;
3 final IFrameElement _suiteIframe; 3 final IFrameElement _suiteIframe;
4 4
5 DivElement _element; 5 DivElement _element;
6 double _meanProduct; 6 double _meanProduct;
7 int _nTests; 7 int _nTests;
8 8
9 SuiteController(this._suiteDescription, this._suiteIframe) 9 SuiteController(this._suiteDescription, this._suiteIframe)
10 : _meanProduct = 1.0, 10 : _meanProduct = 1.0,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ', <a href="${testUrl}">Source</a>' + 62 ', <a href="${testUrl}">Source</a>' +
63 '<ol class="results"></ol>'; 63 '<ol class="results"></ol>';
64 // Reread the element, as the previous wrapper get disconnected thanks 64 // Reread the element, as the previous wrapper get disconnected thanks
65 // to .innerHTML update above. 65 // to .innerHTML update above.
66 _element = div.nodes.first; 66 _element = div.nodes.first;
67 67
68 document.query('#main').nodes.add(div); 68 document.query('#main').nodes.add(div);
69 } 69 }
70 70
71 DivElement _createDiv(String clazz) { 71 DivElement _createDiv(String clazz) {
72 final div = document.createElement('div'); 72 final div = new Element.tag('div');
73 div.attributes['class'] = clazz; 73 div.attributes['class'] = clazz;
74 return div; 74 return div;
75 } 75 }
76 } 76 }
77 77
78 class Dromaeo { 78 class Dromaeo {
79 final Array<SuiteController> _suiteControllers; 79 final Array<SuiteController> _suiteControllers;
80 Function _handler; 80 Function _handler;
81 81
82 Dromaeo() 82 Dromaeo()
(...skipping 10 matching lines...) Expand all
93 } 93 }
94 } 94 }
95 ); 95 );
96 } 96 }
97 97
98 run() { 98 run() {
99 // TODO(antonm): create Re-run tests href. 99 // TODO(antonm): create Re-run tests href.
100 document.query('#overview').elements.first.innerHTML = 'DOM Core Tests'; 100 document.query('#overview').elements.first.innerHTML = 'DOM Core Tests';
101 _css(document.query('#tests'), 'display', 'none'); 101 _css(document.query('#tests'), 'display', 'none');
102 for (SuiteDescription suite in Suites.SUITE_DESCRIPTIONS) { 102 for (SuiteDescription suite in Suites.SUITE_DESCRIPTIONS) {
103 final iframe = document.createElement('iframe'); 103 final iframe = new Element.tag('iframe');
104 _css(iframe, 'height', '1px'); 104 _css(iframe, 'height', '1px');
105 _css(iframe, 'width', '1px'); 105 _css(iframe, 'width', '1px');
106 iframe.src = 'tests/' + suite.file; 106 iframe.src = 'tests/' + suite.file;
107 document.body.nodes.add(iframe); 107 document.body.nodes.add(iframe);
108 108
109 _suiteControllers.add(new SuiteController(suite, iframe)); 109 _suiteControllers.add(new SuiteController(suite, iframe));
110 } 110 }
111 } 111 }
112 112
113 static final double _SECS_PER_TEST = 5.0; 113 static final double _SECS_PER_TEST = 5.0;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 int get _suitesTotal() { 188 int get _suitesTotal() {
189 return _suiteControllers.length; 189 return _suiteControllers.length;
190 } 190 }
191 } 191 }
192 192
193 class Main { 193 class Main {
194 static main() { 194 static main() {
195 window.on.load.add((Event evt) => new Dromaeo().run()); 195 window.on.load.add((Event evt) => new Dromaeo().run());
196 } 196 }
197 } 197 }
OLDNEW
« no previous file with comments | « client/fling/dist/runtime/apps/adminz/adminz.dart ('k') | client/html/benchmarks/dromaeo/tests/DomModify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698