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

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

Issue 10910013: Remove instances of dart:dom_deprecated from outside of lib/html and lib/dom. Part 1 of many. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: samples/third_party/dromaeo/tests/dom-attr-dom.dart
===================================================================
--- samples/third_party/dromaeo/tests/dom-attr-dom.dart (revision 11641)
+++ samples/third_party/dromaeo/tests/dom-attr-dom.dart (working copy)
@@ -1,35 +0,0 @@
-#library("dom_attr");
-#import("dart:dom_deprecated");
-#import("dart:json");
-#import("dart:math", prefix: "Math");
-#source("Common.dart");
-#source("RunnerSuite.dart");
-
-void main() {
- final int num = 10240;
-
- // Try to force real results.
- var ret;
-
- HTMLElement elem = document.getElementById('test1');
- HTMLElement a = document.getElementsByTagName('a')[0];
-
- new Suite(window, 'dom-attr')
- .test('getAttribute', () {
- 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', () {
- for (int i = 0; i < num; i++)
- a.id = 'foo';
- })
- .end();
-}

Powered by Google App Engine
This is Rietveld 408576698