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

Unified Diff: client/tests/client/dom/WebGL1Test.dart

Issue 9315025: Add forgotten layout tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 months 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 | « client/tests/client/dom/SVG3Test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/WebGL1Test.dart
diff --git a/client/tests/client/dom/WebGL1Test.dart b/client/tests/client/dom/WebGL1Test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8042a018c91f401b7db88f4f014e21449f17051a
--- /dev/null
+++ b/client/tests/client/dom/WebGL1Test.dart
@@ -0,0 +1,20 @@
+#library('WebGL1Test');
+#import('../../../testing/unittest/unittest.dart');
+#import('dart:dom');
+
+// Test that WebGL is present in dart:dom API
+
+main() {
+ forLayoutTests();
+
+ test('simple', () {
+ var canvas = document.createElement("canvas");
+ var gl = canvas.getContext("experimental-webgl");
+ var shader = gl.createShader(WebGLRenderingContext.VERTEX_SHADER);
+ gl.shaderSource(shader, "void main() { }");
+ gl.compileShader(shader);
+ var success =
+ gl.getShaderParameter(shader, WebGLRenderingContext.COMPILE_STATUS);
+ Expect.isTrue(success);
+ });
+}
« no previous file with comments | « client/tests/client/dom/SVG3Test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698