Chromium Code Reviews| Index: tests/html/webgl_1_test.dart |
| diff --git a/tests/html/webgl_1_test.dart b/tests/html/webgl_1_test.dart |
| index 80b70eaad6903fb56881bf117ffeb24ab380521b..ef7aedce8b56ab29c726d19735b2edc6937c4db3 100644 |
| --- a/tests/html/webgl_1_test.dart |
| +++ b/tests/html/webgl_1_test.dart |
| @@ -88,6 +88,15 @@ main() { |
| context.texSubImage2DCanvas(1, 1, 1, 1, 1, 10, new CanvasElement()); |
| context.texSubImage2DVideo(1, 1, 1, 1, 1, 10, new VideoElement()); |
| }); |
| + |
| + test('getContextAttributes', () { |
| + var canvas = new CanvasElement(); |
| + var context = canvas.getContext3d(); |
| + var attributes = context.getContextAttributes(); |
| + |
| + expect(attributes, isNotNull); |
| + expect(attributes, new isInstanceOf<gl.ContextAttributes>()); |
|
sra1
2013/10/23 04:15:44
Also check you can access the fields.
I believe th
Andrei Mouravski
2013/10/24 18:09:49
Done.
|
| + }); |
| } |
| }); |
| } |