| Index: tests/html/document_test.dart
|
| diff --git a/tests/html/document_test.dart b/tests/html/document_test.dart
|
| index 7597f77147ace7d5e78a7caa2586b19c9b5dc8f3..2f44c2f1e0d076d1378df77447836e1562e0314b 100644
|
| --- a/tests/html/document_test.dart
|
| +++ b/tests/html/document_test.dart
|
| @@ -1,10 +1,10 @@
|
| library DocumentTest;
|
| import '../../pkg/unittest/lib/unittest.dart';
|
| -import '../../pkg/unittest/lib/html_config.dart';
|
| +import '../../pkg/unittest/lib/html_individual_config.dart';
|
| import 'dart:html';
|
|
|
| main() {
|
| - useHtmlConfiguration();
|
| + useHtmlIndividualConfiguration();
|
|
|
| var isElement = predicate((x) => x is Element, 'is an Element');
|
| var isDivElement = predicate((x) => x is DivElement, 'is a DivElement');
|
| @@ -20,4 +20,13 @@ main() {
|
| expect(new Element.tag('a'), isAnchorElement);
|
| expect(new Element.tag('bad_name'), isUnknownElement);
|
| });
|
| +
|
| + group('getCssCanvasContext', () {
|
| + test('getCssCanvasContext 2d', () {
|
| + var context = document.getCssCanvasContext('2d', 'testContext', 10, 20);
|
| + expect(context is CanvasRenderingContext2D, true);
|
| + expect(context.canvas.width, 10);
|
| + expect(context.canvas.height, 20);
|
| + });
|
| + });
|
| }
|
|
|