Lines Matching refs:done
22 it('parses hex color strings', function(done) { argument
23 LoadCanvasKit.then(catchException(done, () => {
33 done();
36 it('parses rgba color strings', function(done) { argument
37 LoadCanvasKit.then(catchException(done, () => {
47 done();
50 it('parses named color strings', function(done) { argument
51 LoadCanvasKit.then(catchException(done, () => {
59 done();
63 it('properly produces color strings', function(done) { argument
64 LoadCanvasKit.then(catchException(done, () => {
72 done();
76 it('can multiply colors by alpha', function(done) { argument
77 LoadCanvasKit.then(catchException(done, () => {
109 done();
115 it('can parse font sizes', function(done) { argument
116 LoadCanvasKit.then(catchException(done, () => {
165 done();
169 it('can parse font attributes', function(done) { argument
170 LoadCanvasKit.then(catchException(done, () => {
249 done();
254 function multipleCanvasTest(testname, done, test) { argument
272 done();
273 }).catch(reportError(done));
277 it('supports all the line types', function(done) { argument
278 LoadCanvasKit.then(catchException(done, () => {
279 multipleCanvasTest('all_line_drawing_operations', done, (canvas) => {
335 it('handles all the transforms as specified', function(done) { argument
336 LoadCanvasKit.then(catchException(done, () => {
337 multipleCanvasTest('all_matrix_operations', done, (canvas) => {
388 it('properly saves and restores states, even when drawing shadows', function(done) { argument
389 LoadCanvasKit.then(catchException(done, () => {
390 multipleCanvasTest('shadows_and_save_restore', done, (canvas) => {
448 it('fills/strokes rects and supports some global settings', function(done) { argument
449 LoadCanvasKit.then(catchException(done, () => {
450 multipleCanvasTest('global_dashed_rects', done, (canvas) => {
499 it('supports gradients, which respect clip/save/restore', function(done) { argument
500 LoadCanvasKit.then(catchException(done, () => {
501 multipleCanvasTest('gradients_clip', done, (canvas) => {
540 it('can draw png images', function(done) { argument
555 LoadCanvasKit.then(catchException(done, () => {
557 multipleCanvasTest('draw_image', done, (canvas) => {
577 it('can get and put pixels', function(done) { argument
578 LoadCanvasKit.then(catchException(done, () => {
579 multipleCanvasTest('get_put_imagedata', done, (canvas) => {
606 it('can make patterns', function(done) { argument
621 LoadCanvasKit.then(catchException(done, () => {
623 multipleCanvasTest('draw_patterns', done, (canvas) => {
657 it('can get and put pixels', function(done) { argument
658 LoadCanvasKit.then(catchException(done, () => {
702 multipleCanvasTest('points_in_path_stroke', done, (canvas) => {
746 it('can load custom fonts', function(done) { argument
763 LoadCanvasKit.then(catchException(done, () => {
765 multipleCanvasTest('custom_font', done, (canvas) => {
792 it('can read default properties', function(done) { argument
793 LoadCanvasKit.then(catchException(done, () => {
819 done();
825 it('supports all the line types', function(done) { argument
826 LoadCanvasKit.then(catchException(done, () => {
827 multipleCanvasTest('path2d_line_drawing_operations', done, (canvas) => {