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

Unified Diff: tests/dom/svg_2_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/svg_1_test.dart ('k') | tests/dom/svg_3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/dom/svg_2_test.dart
diff --git a/tests/dom/svg_2_test.dart b/tests/dom/svg_2_test.dart
deleted file mode 100644
index c510d3bae3502603fcbb9859b465c9f77c565333..0000000000000000000000000000000000000000
--- a/tests/dom/svg_2_test.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-#library('SVG2Test');
-#import('../../lib/unittest/unittest.dart');
-#import('../../lib/unittest/html_config.dart');
-#import('dart:html');
-
-// Test that SVG elements explicitly implement the IDL interfaces (is-checks
-// only, see SVGTest3 for behavioural tests).
-
-main() {
-
- insertTestDiv() {
- var element = new Element.tag('div');
- element.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>
-''';
- document.body.nodes.add(element);
- return element;
- }
-
- useHtmlConfiguration();
-
- test('rect_isChecks', () {
- var div = insertTestDiv();
- var r = document.query('#rect1');
-
- // Direct inheritance chain
- Expect.isTrue(r is SVGElement);
- Expect.isTrue(r is Element);
- Expect.isTrue(r is Node);
-
- // Other implemented interfaces.
- Expect.isTrue(r is SVGTests);
- Expect.isTrue(r is SVGLangSpace);
- Expect.isTrue(r is SVGExternalResourcesRequired);
- Expect.isTrue(r is SVGStylable);
- Expect.isTrue(r is SVGTransformable);
- Expect.isTrue(r is SVGLocatable);
-
- // Interfaces not implemented.
- Expect.isFalse(r is SVGNumber);
- Expect.isFalse(r is SVGRect);
- Expect.isFalse(r is SVGSVGElement);
-
- div.remove();
- });
-}
« no previous file with comments | « tests/dom/svg_1_test.dart ('k') | tests/dom/svg_3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698