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

Side by Side Diff: tests/html/xml_element_tests.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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 void testXMLElement() { 5 void testXMLElement() {
6 XMLElement makeElement() => new XMLElement.xml("<xml><foo/><bar/></xml>"); 6 XMLElement makeElement() => new XMLElement.xml("<xml><foo/><bar/></xml>");
7 7
8 makeElementWithParent() { 8 makeElementWithParent() {
9 final parent = new XMLElement.xml( 9 final parent = new XMLElement.xml(
10 "<parent><before/><xml><foo/><bar/></xml><after/></parent>"); 10 "<parent><before/><xml><foo/><bar/></xml><after/></parent>");
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 makeElement().rect.then((ElementRect rect) { 560 makeElement().rect.then((ElementRect rect) {
561 expectEmptyRect(rect.client); 561 expectEmptyRect(rect.client);
562 expectEmptyRect(rect.offset); 562 expectEmptyRect(rect.offset);
563 expectEmptyRect(rect.scroll); 563 expectEmptyRect(rect.scroll);
564 expectEmptyRect(rect.bounding); 564 expectEmptyRect(rect.bounding);
565 Expect.isTrue(rect.clientRects.isEmpty()); 565 Expect.isTrue(rect.clientRects.isEmpty());
566 callbackDone(); 566 callbackDone();
567 }); 567 });
568 }); 568 });
569 } 569 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698