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

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

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/storage_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/unittest.dart'); 2 import '../../pkg/unittest/lib/unittest.dart';
3 #import('../../pkg/unittest/html_config.dart'); 3 import '../../pkg/unittest/lib/html_config.dart';
4 #import('dart:html'); 4 import 'dart:html';
5 5
6 // Test that SVG is present in dart:html API 6 // Test that SVG is present in dart:html API
7 7
8 main() { 8 main() {
9 useHtmlConfiguration(); 9 useHtmlConfiguration();
10 10
11 var isSVGElement = predicate((x) => x is SVGElement, 'is a SVGElement'); 11 var isSVGElement = predicate((x) => x is SVGElement, 'is a SVGElement');
12 12
13 test('simpleRect', () { 13 test('simpleRect', () {
14 var div = new Element.tag('div'); 14 var div = new Element.tag('div');
(...skipping 21 matching lines...) Expand all
36 var logo = new SVGElement.svg(""" 36 var logo = new SVGElement.svg("""
37 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> 37 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
38 <path/> 38 <path/>
39 </svg> 39 </svg>
40 """); 40 """);
41 41
42 expect(logo, isSVGElement); 42 expect(logo, isSVGElement);
43 43
44 }); 44 });
45 } 45 }
OLDNEW
« no previous file with comments | « tests/html/storage_test.dart ('k') | tests/html/svg_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698