| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 library ElementTest; | 5 library ElementTest; |
| 6 import '../../pkg/unittest/lib/unittest.dart'; | 6 import '../../pkg/unittest/lib/unittest.dart'; |
| 7 import '../../pkg/unittest/lib/html_individual_config.dart'; | 7 import '../../pkg/unittest/lib/html_individual_config.dart'; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:html'; | 9 import 'dart:html'; |
| 10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 var bar = query('.bar'); | 822 var bar = query('.bar'); |
| 823 var baz = query('.baz'); | 823 var baz = query('.baz'); |
| 824 var qux = query('.qux'); | 824 var qux = query('.qux'); |
| 825 var quux = query('.quux'); | 825 var quux = query('.quux'); |
| 826 var itema = query('.item-a'); | 826 var itema = query('.item-a'); |
| 827 var itemb = query('.item-b'); | 827 var itemb = query('.item-b'); |
| 828 var item1 = query('.item-1'); | 828 var item1 = query('.item-1'); |
| 829 var itemii = query('.item-ii'); | 829 var itemii = query('.item-ii'); |
| 830 | 830 |
| 831 expect(itema.documentOffset.x, 88); | 831 expect(itema.documentOffset.x, 88); |
| 832 expect(itema.documentOffset.y, inInclusiveRange(119, 124)); | 832 expect(itema.documentOffset.y, inInclusiveRange(119, 160)); |
| 833 | 833 |
| 834 expect(itemii.documentOffset.x, 48); | 834 expect(itemii.documentOffset.x, 48); |
| 835 expect(itemii.documentOffset.y, inInclusiveRange(101, 105)); | 835 expect(itemii.documentOffset.y, inInclusiveRange(101, 145)); |
| 836 | 836 |
| 837 expect(itemb.documentOffset.x, 238); | 837 expect(itemb.documentOffset.x, 238); |
| 838 expect(itemb.documentOffset.y, inInclusiveRange(157, 165)); | 838 expect(itemb.documentOffset.y, inInclusiveRange(157, 205)); |
| 839 | 839 |
| 840 expect(item1.documentOffset.x, 278); | 840 expect(item1.documentOffset.x, 278); |
| 841 expect(item1.documentOffset.y, inInclusiveRange(175, 182)); | 841 expect(item1.documentOffset.y, inInclusiveRange(175, 222)); |
| 842 | 842 |
| 843 expect(bar.documentOffset.x, 90); | 843 expect(bar.documentOffset.x, 90); |
| 844 expect(bar.documentOffset.y, 8); | 844 expect(bar.documentOffset.y, 8); |
| 845 | 845 |
| 846 expect(baz.documentOffset.x, 7090); | 846 expect(baz.documentOffset.x, 7090); |
| 847 expect(baz.documentOffset.y, 608); | 847 expect(baz.documentOffset.y, 608); |
| 848 | 848 |
| 849 expect(qux.documentOffset.x, 8); | 849 expect(qux.documentOffset.x, 8); |
| 850 expect(qux.documentOffset.y, inInclusiveRange(222, 232)); | 850 expect(qux.documentOffset.y, inInclusiveRange(221, 232)); |
| 851 | 851 |
| 852 expect(quux.documentOffset.x, 8); | 852 expect(quux.documentOffset.x, 8); |
| 853 expect(quux.documentOffset.y, inInclusiveRange(222, 232)); | 853 expect(quux.documentOffset.y, inInclusiveRange(221, 232)); |
| 854 }); | 854 }); |
| 855 }); | 855 }); |
| 856 | 856 |
| 857 } | 857 } |
| OLD | NEW |