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

Unified Diff: tests/html/document_test.dart

Issue 11470009: Removing more APIs from Document. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing tests. Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/client_rect_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
+ });
}
« no previous file with comments | « tests/html/client_rect_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698