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

Side by Side Diff: tests/html/svg_2_test.dart

Issue 12084089: Forgotten cleanup. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library SVG2Test; 1 library SVG2Test;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart'; 3 import '../../pkg/unittest/lib/html_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 6
7 // Test that SVG elements explicitly implement the IDL interfaces (is-checks 7 // Test that SVG elements explicitly implement the IDL interfaces (is-checks
8 // only, see SVGTest3 for behavioural tests). 8 // only, see SVGTest3 for behavioural tests).
9 9
10 main() { 10 main() {
(...skipping 14 matching lines...) Expand all
25 var isElement = predicate((x) => x is Element, 'is an Element'); 25 var isElement = predicate((x) => x is Element, 'is an Element');
26 var isSvgElement = predicate((x) => x is svg.SvgElement, 'is a SvgElement'); 26 var isSvgElement = predicate((x) => x is svg.SvgElement, 'is a SvgElement');
27 var isSvgSvgElement = 27 var isSvgSvgElement =
28 predicate((x) => x is svg.SvgSvgElement, 'is a SvgSvgElement'); 28 predicate((x) => x is svg.SvgSvgElement, 'is a SvgSvgElement');
29 var isNode = predicate((x) => x is Node, 'is a Node'); 29 var isNode = predicate((x) => x is Node, 'is a Node');
30 var isSvgTests = predicate((x) => x is svg.Tests, 'is a svg.Tests'); 30 var isSvgTests = predicate((x) => x is svg.Tests, 'is a svg.Tests');
31 var isSvgLangSpace = predicate((x) => x is svg.LangSpace, 'is a svg.LangSpace' ); 31 var isSvgLangSpace = predicate((x) => x is svg.LangSpace, 'is a svg.LangSpace' );
32 var isSvgExternalResourcesRequired = 32 var isSvgExternalResourcesRequired =
33 predicate((x) => x is svg.ExternalResourcesRequired, 33 predicate((x) => x is svg.ExternalResourcesRequired,
34 'is a svg.ExternalResourcesRequired'); 34 'is a svg.ExternalResourcesRequired');
35 var isSvgStylable = predicate((x) => x is svg.Stylable, 'is a svg.Stylable');
36 var isSvgTransformable = 35 var isSvgTransformable =
37 predicate((x) => x is svg.Transformable, 'is a svg.Transformable'); 36 predicate((x) => x is svg.Transformable, 'is a svg.Transformable');
38 var isSvgLocatable = 37 var isSvgLocatable =
39 predicate((x) => x is svg.Locatable, 'is a svg.Locatable'); 38 predicate((x) => x is svg.Locatable, 'is a svg.Locatable');
40 var isSvgNumber = predicate((x) => x is svg.Number, 'is a svg.Number'); 39 var isSvgNumber = predicate((x) => x is svg.Number, 'is a svg.Number');
41 var isSvgRect = predicate((x) => x is svg.Rect, 'is a svg.Rect'); 40 var isSvgRect = predicate((x) => x is svg.Rect, 'is a svg.Rect');
42 41
43 test('rect_isChecks', () { 42 test('rect_isChecks', () {
44 var div = insertTestDiv(); 43 var div = insertTestDiv();
45 var r = document.query('#rect1'); 44 var r = document.query('#rect1');
(...skipping 11 matching lines...) Expand all
57 expect(r, isSvgLocatable); 56 expect(r, isSvgLocatable);
58 57
59 // Interfaces not implemented. 58 // Interfaces not implemented.
60 expect(r, isNot(isSvgNumber)); 59 expect(r, isNot(isSvgNumber));
61 expect(r, isNot(isSvgRect)); 60 expect(r, isNot(isSvgRect));
62 expect(r, isNot(isSvgSvgElement)); 61 expect(r, isNot(isSvgSvgElement));
63 62
64 div.remove(); 63 div.remove();
65 }); 64 });
66 } 65 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698