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

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

Issue 23534024: createRange.... (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | samples/third_party/dromaeo/tests/dom-traverse-html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/tests/dom-attr-html.dart
diff --git a/samples/third_party/dromaeo/tests/dom-attr-html.dart b/samples/third_party/dromaeo/tests/dom-attr-html.dart
index 6fec2fba2bd2f28f51624660c6e8b178b9a45b31..f83deb1d0a18d7bb158847db9d2c454368e92bea 100644
--- a/samples/third_party/dromaeo/tests/dom-attr-html.dart
+++ b/samples/third_party/dromaeo/tests/dom-attr-html.dart
@@ -11,14 +11,14 @@ void main() {
// Try to force real results.
var ret;
-
+
Element elem = document.query('#test1');
Element a = document.query('a');
new Suite(window, 'dom-attr')
.test('getAttribute', () {
for (int i = 0; i < num; i++)
- ret = elem.$dom_getAttribute('id');
+ ret = elem.attributes['id'];
})
.test('element.property', () {
for (int i = 0; i < num * 2; i++)
@@ -26,7 +26,7 @@ void main() {
})
.test('setAttribute', () {
for (int i = 0; i < num; i++)
- a.$dom_setAttribute('id', 'foo');
+ a.attributes['id'] = 'foo';
})
.test('element.property = value', () {
for (int i = 0; i < num; i++)
« no previous file with comments | « no previous file | samples/third_party/dromaeo/tests/dom-traverse-html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698