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

Side by Side Diff: client/tests/client/dom/SVG1Test.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
OLDNEW
(Empty)
1 #library('SVG1Test');
2 #import('../../../../lib/unittest/unittest.dart');
3 #import('../../../../lib/unittest/dom_config.dart');
4 #import('dart:dom');
5
6 // Test that SVG is present in dart:dom API
7
8 main() {
9 useDomConfiguration();
10
11 test('simpleRect', () {
12 var div = document.createElement('div');
13 document.body.appendChild(div);
14 div.innerHTML = @'''
15 <svg id='svg1' width='200' height='100'>
16 <rect id='rect1' x='10' y='20' width='130' height='40' rx='5'fill='blue'></rect>
17 </svg>
18 ''';
19
20 var e = document.getElementById('svg1');
21 Expect.isTrue(e != null);
22
23 SVGRectElement r = document.getElementById('rect1');
24 Expect.equals(10, r.x.baseVal.value);
25 Expect.equals(20, r.y.baseVal.value);
26 Expect.equals(40, r.height.baseVal.value);
27 Expect.equals(130, r.width.baseVal.value);
28 Expect.equals(5, r.rx.baseVal.value);
29 });
30 }
OLDNEW
« no previous file with comments | « client/tests/client/dom/RequestAnimationFrameTest.dart ('k') | client/tests/client/dom/SVG2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698