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

Side by Side Diff: lib/html/benchmarks/dromaeo/tests/DomAttr.dart

Issue 9950103: Remove obsolete version of dromaeo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 class Main {
2 static void main() {
3 final int num = 10240;
4
5 // Try to force real results.
6 var ret;
7 window.on.load.add((Event evt) {
8 Element elem = document.query('#test1');
9 Element a = document.query('a');
10
11 new Suite('dom-attr')
12 .test('getAttribute', void _() {
13 for (int i = 0; i < num; i++)
14 ret = elem.attributes['id'];
15 })
16 .test('element.property', () {
17 for (int i = 0; i < num * 2; i++)
18 ret = elem.id;
19 })
20 .test('setAttribute', () {
21 for (int i = 0; i < num; i++)
22 a.attributes['id'] = 'foo';
23 })
24 .test('element.property = value', () {
25 for (int i = 0; i < num; i++)
26 a.id = 'foo';
27 })
28 .end();
29 });
30 }
31 }
OLDNEW
« no previous file with comments | « lib/html/benchmarks/dromaeo/tests/Common.dart ('k') | lib/html/benchmarks/dromaeo/tests/DomModify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698