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

Side by Side Diff: tests/html/webgl_1_test.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « tests/html/utils.dart ('k') | tests/html/websocket_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('WebGL1Test'); 1 library WebGL1Test;
2 #import('../../pkg/unittest/unittest.dart'); 2 import '../../pkg/unittest/lib/unittest.dart';
3 #import('../../pkg/unittest/html_config.dart'); 3 import '../../pkg/unittest/lib/html_config.dart';
4 #import('dart:html'); 4 import 'dart:html';
5 5
6 // Test that WebGL is present in dart:html API 6 // Test that WebGL is present in dart:html API
7 7
8 main() { 8 main() {
9 useHtmlConfiguration(); 9 useHtmlConfiguration();
10 10
11 test('simple', () { 11 test('simple', () {
12 var canvas = document.createElement("canvas"); 12 var canvas = document.createElement("canvas");
13 var gl = canvas.getContext("experimental-webgl"); 13 var gl = canvas.getContext("experimental-webgl");
14 var shader = gl.createShader(WebGLRenderingContext.VERTEX_SHADER); 14 var shader = gl.createShader(WebGLRenderingContext.VERTEX_SHADER);
15 gl.shaderSource(shader, "void main() { }"); 15 gl.shaderSource(shader, "void main() { }");
16 gl.compileShader(shader); 16 gl.compileShader(shader);
17 var success = 17 var success =
18 gl.getShaderParameter(shader, WebGLRenderingContext.COMPILE_STATUS); 18 gl.getShaderParameter(shader, WebGLRenderingContext.COMPILE_STATUS);
19 expect(success, isTrue); 19 expect(success, isTrue);
20 }); 20 });
21 } 21 }
OLDNEW
« no previous file with comments | « tests/html/utils.dart ('k') | tests/html/websocket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698