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

Unified Diff: tests/dom/svg_1_test.dart

Issue 10178014: Copy lib/dom tests that use dart:html to lib/html. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/dom/storage_test.dart ('k') | tests/dom/svg_2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/dom/svg_1_test.dart
diff --git a/tests/dom/svg_1_test.dart b/tests/dom/svg_1_test.dart
deleted file mode 100644
index 0707b3a63123d373f78b4bd77de533f26af6a15a..0000000000000000000000000000000000000000
--- a/tests/dom/svg_1_test.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-#library('SVG1Test');
-#import('../../lib/unittest/unittest.dart');
-#import('../../lib/unittest/html_config.dart');
-#import('dart:html');
-
-// Test that SVG is present in dart:html API
-
-main() {
- useHtmlConfiguration();
-
- test('simpleRect', () {
- var div = new Element.tag('div');
- document.body.nodes.add(div);
- div.innerHTML = @'''
-<svg id='svg1' width='200' height='100'>
-<rect id='rect1' x='10' y='20' width='130' height='40' rx='5'fill='blue'></rect>
-</svg>
-''';
-
- var e = document.query('#svg1');
- Expect.isTrue(e != null);
-
- SVGRectElement r = document.query('#rect1');
- Expect.equals(10, r.x.baseVal.value);
- Expect.equals(20, r.y.baseVal.value);
- Expect.equals(40, r.height.baseVal.value);
- Expect.equals(130, r.width.baseVal.value);
- Expect.equals(5, r.rx.baseVal.value);
- });
-}
« no previous file with comments | « tests/dom/storage_test.dart ('k') | tests/dom/svg_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698