| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 SVGTest; | 5 library SVGTest; |
| 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:html'; | 8 import 'dart:html'; |
| 9 import 'dart:svg' as svg; | 9 import 'dart:svg' as svg; |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 var isSvgAnimatedBoolean = | 146 var isSvgAnimatedBoolean = |
| 147 predicate((x) => x is svg.AnimatedBoolean, 'is an svg.AnimatedBoolean'); | 147 predicate((x) => x is svg.AnimatedBoolean, 'is an svg.AnimatedBoolean'); |
| 148 var isSvgAnimatedString = | 148 var isSvgAnimatedString = |
| 149 predicate((x) => x is svg.AnimatedString, 'is an svg.AnimatedString'); | 149 predicate((x) => x is svg.AnimatedString, 'is an svg.AnimatedString'); |
| 150 var isSvgRect = predicate((x) => x is svg.Rect, 'is a svg.Rect'); | 150 var isSvgRect = predicate((x) => x is svg.Rect, 'is a svg.Rect'); |
| 151 var isSvgAnimatedTransformList = | 151 var isSvgAnimatedTransformList = |
| 152 predicate((x) => x is svg.AnimatedTransformList, | 152 predicate((x) => x is svg.AnimatedTransformList, |
| 153 'is an svg.AnimatedTransformList'); | 153 'is an svg.AnimatedTransformList'); |
| 154 var isCssStyleDeclaration = | 154 var isCssStyleDeclaration = |
| 155 predicate((x) => x is CssStyleDeclaration, 'is a CssStyleDeclaration'); | 155 predicate((x) => x is CssStyleDeclaration, 'is a CssStyleDeclaration'); |
| 156 var isCssValue = predicate((x) => x is CssValue, 'is a CssValue'); | |
| 157 | 156 |
| 158 /// Verifies that [e] supports the operations on the svg.Tests interface. | 157 /// Verifies that [e] supports the operations on the svg.Tests interface. |
| 159 checkSvgTests(e) { | 158 checkSvgTests(e) { |
| 160 // Just check that the operations seem to exist. | 159 // Just check that the operations seem to exist. |
| 161 var rx = e.requiredExtensions; | 160 var rx = e.requiredExtensions; |
| 162 expect(rx, isStringList); | 161 expect(rx, isStringList); |
| 163 var rf = e.requiredFeatures; | 162 var rf = e.requiredFeatures; |
| 164 expect(rf, isStringList); | 163 expect(rf, isStringList); |
| 165 var sl = e.systemLanguage; | 164 var sl = e.systemLanguage; |
| 166 expect(sl, isStringList); | 165 expect(sl, isStringList); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 237 |
| 239 testRect('rect_SvgTests', checkSvgTests); | 238 testRect('rect_SvgTests', checkSvgTests); |
| 240 testRect('rect_SvgLangSpace', checkSvgLangSpace); | 239 testRect('rect_SvgLangSpace', checkSvgLangSpace); |
| 241 testRect('rect_SvgExternalResourcesRequired', | 240 testRect('rect_SvgExternalResourcesRequired', |
| 242 checkSvgExternalResourcesRequired); | 241 checkSvgExternalResourcesRequired); |
| 243 testRect('rect_SvgLocatable', checkSvgLocatable); | 242 testRect('rect_SvgLocatable', checkSvgLocatable); |
| 244 testRect('rect_SvgTransformable', checkSvgTransformable); | 243 testRect('rect_SvgTransformable', checkSvgTransformable); |
| 245 }); | 244 }); |
| 246 | 245 |
| 247 } | 246 } |
| OLD | NEW |