From 17a9472745e0177a2d5d9d2fc955d3147f36946f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 25 Sep 2015 18:43:43 +0200 Subject: [PATCH] webgl: Add test for passing a canvas with no context as texture source --- tests/ref/basic.list | 1 + .../tex_image_2d_canvas_no_context.html | 111 ++++++++++++++++++ .../tex_image_2d_canvas_no_context_ref.html | 26 ++++ 3 files changed, 138 insertions(+) create mode 100644 tests/ref/webgl-context/tex_image_2d_canvas_no_context.html create mode 100644 tests/ref/webgl-context/tex_image_2d_canvas_no_context_ref.html diff --git a/tests/ref/basic.list b/tests/ref/basic.list index 4388089bca6..fbcb78bc891 100644 --- a/tests/ref/basic.list +++ b/tests/ref/basic.list @@ -404,6 +404,7 @@ prefs:"layout.viewport.enabled" == viewport_rule.html viewport_rule_ref.html == webgl-context/draw_arrays_simple.html webgl-context/draw_arrays_simple_ref.html == webgl-context/tex_image_2d_canvas.html webgl-context/tex_image_2d_canvas_ref.html == webgl-context/tex_image_2d_canvas2d.html webgl-context/tex_image_2d_canvas_ref.html +== webgl-context/tex_image_2d_canvas_no_context.html webgl-context/tex_image_2d_canvas_no_context_ref.html == webgl-context/tex_image_2d_simple.html webgl-context/tex_image_2d_simple_ref.html flaky_macos == white_space_intrinsic_sizes_a.html white_space_intrinsic_sizes_ref.html diff --git a/tests/ref/webgl-context/tex_image_2d_canvas_no_context.html b/tests/ref/webgl-context/tex_image_2d_canvas_no_context.html new file mode 100644 index 00000000000..157773ff10d --- /dev/null +++ b/tests/ref/webgl-context/tex_image_2d_canvas_no_context.html @@ -0,0 +1,111 @@ + + + + WebGL texture test + + + + + + + + diff --git a/tests/ref/webgl-context/tex_image_2d_canvas_no_context_ref.html b/tests/ref/webgl-context/tex_image_2d_canvas_no_context_ref.html new file mode 100644 index 00000000000..36cb7914e64 --- /dev/null +++ b/tests/ref/webgl-context/tex_image_2d_canvas_no_context_ref.html @@ -0,0 +1,26 @@ + + +WebGL texture test + + +