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

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

Issue 11398002: Splitting SVG types out of dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minifying. Created 8 years, 1 month 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 | « tests/html/node_test.dart ('k') | tests/html/svg_2_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library SVG1Test; 1 library SVG1Test;
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';
5 6
6 // Test that SVG is present in dart:html API 7 // Test that SVG is present in dart:html API
7 8
8 main() { 9 main() {
9 useHtmlConfiguration(); 10 useHtmlConfiguration();
10 11
11 var isSVGElement = predicate((x) => x is SVGElement, 'is a SVGElement'); 12 var isSVGElement = predicate((x) => x is SVGElement, 'is a SVGElement');
12 13
13 test('simpleRect', () { 14 test('simpleRect', () {
14 var div = new Element.tag('div'); 15 var div = new Element.tag('div');
(...skipping 21 matching lines...) Expand all
36 var logo = new SVGElement.svg(""" 37 var logo = new SVGElement.svg("""
37 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> 38 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
38 <path/> 39 <path/>
39 </svg> 40 </svg>
40 """); 41 """);
41 42
42 expect(logo, isSVGElement); 43 expect(logo, isSVGElement);
43 44
44 }); 45 });
45 } 46 }
OLDNEW
« no previous file with comments | « tests/html/node_test.dart ('k') | tests/html/svg_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698