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

Side by Side Diff: LayoutTests/dart/dom/WebGLTest1.dart

Issue 9188009: Things to unfork. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/dart/dom/Typing-expected.txt ('k') | LayoutTests/dart/dom/WebGLTest1.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #import('../../../../../dart/client/testing/unittest/unittest.dart');
2 #import('dart:dom');
3
4 // Test that WebGL is present in dart:dom API
5
6 main() {
7 forLayoutTests();
8
9 test('simple', () {
10 var canvas = document.createElement("canvas");
11 var gl = canvas.getContext("experimental-webgl");
12 var shader = gl.createShader(WebGLRenderingContext.VERTEX_SHADER);
13 gl.shaderSource(shader, "void main() { }");
14 gl.compileShader(shader);
15 var success =
16 gl.getShaderParameter(shader, WebGLRenderingContext.COMPILE_STATUS);
17 Expect.isTrue(success);
18 });
19 }
OLDNEW
« no previous file with comments | « LayoutTests/dart/dom/Typing-expected.txt ('k') | LayoutTests/dart/dom/WebGLTest1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698