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

Unified Diff: tests/html/document_test.dart

Issue 11778071: Removing outdated xml tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/document_test.dart
diff --git a/tests/html/document_test.dart b/tests/html/document_test.dart
index 2f44c2f1e0d076d1378df77447836e1562e0314b..eb5d36398fe9e39928d31080a408c6db57fb2ccf 100644
--- a/tests/html/document_test.dart
+++ b/tests/html/document_test.dart
@@ -13,14 +13,6 @@ main() {
var isUnknownElement =
predicate((x) => x is UnknownElement, 'is UnknownElement');
- test('CreateElement', () {
- // FIXME: nifty way crashes, do it boring way.
- expect(new Element.tag('span'), isElement);
- expect(new Element.tag('div'), isDivElement);
- expect(new Element.tag('a'), isAnchorElement);
- expect(new Element.tag('bad_name'), isUnknownElement);
- });
-
group('getCssCanvasContext', () {
test('getCssCanvasContext 2d', () {
var context = document.getCssCanvasContext('2d', 'testContext', 10, 20);
@@ -29,4 +21,26 @@ main() {
expect(context.canvas.height, 20);
});
});
+
+ group('document', () {
+ test('Document.query', () {
+ Document doc = new DomParser().parseFromString(
+ '''<ResultSet>
+ <Row>A</Row>
+ <Row>B</Row>
+ <Row>C</Row>
+ </ResultSet>''','text/xml');
+
+ var rs = doc.query('ResultSet');
+ expect(rs, isNotNull);
+ });
+
+ test('CreateElement', () {
+ // FIXME: nifty way crashes, do it boring way.
+ expect(new Element.tag('span'), isElement);
+ expect(new Element.tag('div'), isDivElement);
+ expect(new Element.tag('a'), isAnchorElement);
+ expect(new Element.tag('bad_name'), isUnknownElement);
+ });
+ });
}
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698