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

Side by Side Diff: samples/third_party/dromaeo/tests/dom-attr-html.dart

Issue 199003005: Package-ify Dromaeo and browser controller functionality (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 dromaeo;
2 import 'dart:async';
3 import 'dart:html';
4 import "dart:convert";
5 import 'dart:math' as Math;
6 part 'Common.dart';
7 part 'RunnerSuite.dart';
8
9 void main() {
10 final int num = 10240;
11
12 // Try to force real results.
13 var ret;
14
15 Element elem = document.querySelector('#test1');
16 Element a = document.querySelector('a');
17
18 new Suite(window, 'dom-attr')
19 .test('getAttribute', () {
20 for (int i = 0; i < num; i++)
21 ret = elem.getAttribute('id');
22 })
23 .test('element.property', () {
24 for (int i = 0; i < num * 2; i++)
25 ret = elem.id;
26 })
27 .test('setAttribute', () {
28 for (int i = 0; i < num; i++)
29 a.setAttribute('id', 'foo');
30 })
31 .test('element.property = value', () {
32 for (int i = 0; i < num; i++)
33 a.id = 'foo';
34 })
35 .end();
36 }
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/tests/dom-attr.html ('k') | samples/third_party/dromaeo/tests/dom-attr-html.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698