OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |