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

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

Issue 8637013: Remove support for attribute event listeners. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/dom/benchmarks/dromaeo/Dromaeo.dart ('k') | client/dom/benchmarks/dromaeo/tests/dom-modify.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/benchmarks/dromaeo/tests/dom-attr.dart
diff --git a/client/dom/benchmarks/dromaeo/tests/dom-attr.dart b/client/dom/benchmarks/dromaeo/tests/dom-attr.dart
index 1845711c254212267308b61e56821da75cea828a..e2cace43cb039e89b194d7d4b0d6279804dcb1f6 100644
--- a/client/dom/benchmarks/dromaeo/tests/dom-attr.dart
+++ b/client/dom/benchmarks/dromaeo/tests/dom-attr.dart
@@ -7,27 +7,26 @@ void main() {
// Try to force real results.
var ret;
- window.onload = (Event evt) {
- HTMLElement elem = document.getElementById('test1');
- HTMLElement a = document.getElementsByTagName('a')[0];
- new Suite(window, 'dom-attr')
- .test('getAttribute', void _() {
- for (int i = 0; i < num; i++)
- ret = elem.getAttribute('id');
- })
- .test('element.property', () {
- for (int i = 0; i < num * 2; i++)
- ret = elem.id;
- })
- .test('setAttribute', () {
- for (int i = 0; i < num; i++)
- a.setAttribute('id', 'foo');
- })
- .test('element.property = value', () {
+ HTMLElement elem = document.getElementById('test1');
+ HTMLElement a = document.getElementsByTagName('a')[0];
+
+ new Suite(window, 'dom-attr')
+ .test('getAttribute', void _() {
+ for (int i = 0; i < num; i++)
+ ret = elem.getAttribute('id');
+ })
+ .test('element.property', () {
+ for (int i = 0; i < num * 2; i++)
+ ret = elem.id;
+ })
+ .test('setAttribute', () {
for (int i = 0; i < num; i++)
- a.id = 'foo';
- })
- .end();
- };
+ a.setAttribute('id', 'foo');
+ })
+ .test('element.property = value', () {
+ for (int i = 0; i < num; i++)
+ a.id = 'foo';
+ })
+ .end();
}
« no previous file with comments | « client/dom/benchmarks/dromaeo/Dromaeo.dart ('k') | client/dom/benchmarks/dromaeo/tests/dom-modify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698