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

Side by Side Diff: client/dom/benchmarks/dromaeo/tests/dom-attr.dart

Issue 9374026: Move dromaeo to third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moved Dromaeo to third party. Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #library("dom-attr.dart");
2 #import("dart:dom");
3 #import('runner.dart');
4
5 void main() {
6 final int num = 10240;
7
8 // Try to force real results.
9 var ret;
10
11 HTMLElement elem = document.getElementById('test1');
12 HTMLElement a = document.getElementsByTagName('a')[0];
13
14 new Suite(window, 'dom-attr')
15 .test('getAttribute', void _() {
16 for (int i = 0; i < num; i++)
17 ret = elem.getAttribute('id');
18 })
19 .test('element.property', () {
20 for (int i = 0; i < num * 2; i++)
21 ret = elem.id;
22 })
23 .test('setAttribute', () {
24 for (int i = 0; i < num; i++)
25 a.setAttribute('id', 'foo');
26 })
27 .test('element.property = value', () {
28 for (int i = 0; i < num; i++)
29 a.id = 'foo';
30 })
31 .end();
32 }
OLDNEW
« no previous file with comments | « client/dom/benchmarks/dromaeo/tests/RunnerSuite.dart ('k') | client/dom/benchmarks/dromaeo/tests/dom-attr.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698