diff options
author | yongsheng.zhu@intel.com <yongsheng.zhu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-26 03:50:23 +0000 |
---|---|---|
committer | yongsheng.zhu@intel.com <yongsheng.zhu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-26 03:50:23 +0000 |
commit | b5e3497fd9c61698b4529c2e5c66b89695f34b3b (patch) | |
tree | b7b37b82843ea3593df4f30733a19eddd1d87fde /chrome/test/gpu | |
parent | 3f9ab536e81f6ba3fb21123c71130781e0da0ca3 (diff) | |
download | chromium_src-b5e3497fd9c61698b4529c2e5c66b89695f34b3b.zip chromium_src-b5e3497fd9c61698b4529c2e5c66b89695f34b3b.tar.gz chromium_src-b5e3497fd9c61698b4529c2e5c66b89695f34b3b.tar.bz2 |
Enable webgl conformance tests under content/test/gpu in content_browsertests
It enables the webgl conformace test in content_browsertests basing on
chrome/test/gpu.
BUG=149892
TEST=
Review URL: https://chromiumcodereview.appspot.com/10916334
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158742 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/gpu')
-rw-r--r-- | chrome/test/gpu/gpu_crash_browsertest.cc | 4 | ||||
-rw-r--r-- | chrome/test/gpu/gpu_feature_browsertest.cc | 3 | ||||
-rw-r--r-- | chrome/test/gpu/gpu_mapsgl_endurance_browsertest.cc | 2 | ||||
-rw-r--r-- | chrome/test/gpu/gpu_pixel_browsertest.cc | 2 | ||||
-rw-r--r-- | chrome/test/gpu/webgl_conformance_test_expectations.txt | 189 | ||||
-rw-r--r-- | chrome/test/gpu/webgl_conformance_tests.cc | 3 |
6 files changed, 8 insertions, 195 deletions
diff --git a/chrome/test/gpu/gpu_crash_browsertest.cc b/chrome/test/gpu/gpu_crash_browsertest.cc index 941d73b..1b3e445 100644 --- a/chrome/test/gpu/gpu_crash_browsertest.cc +++ b/chrome/test/gpu/gpu_crash_browsertest.cc @@ -47,7 +47,7 @@ class GPUCrashTest : public InProcessBrowserTest { // Currently Kill times out on GPU bots: http://crbug.com/101513 IN_PROC_BROWSER_TEST_F(GPUCrashTest, DISABLED_Kill) { - ui_test_utils::DOMMessageQueue message_queue; + content::DOMMessageQueue message_queue; ui_test_utils::NavigateToURL( browser(), @@ -62,7 +62,7 @@ IN_PROC_BROWSER_TEST_F(GPUCrashTest, DISABLED_Kill) { IN_PROC_BROWSER_TEST_F(GPUCrashTest, WebkitLoseContext) { - ui_test_utils::DOMMessageQueue message_queue; + content::DOMMessageQueue message_queue; ui_test_utils::NavigateToURL( browser(), diff --git a/chrome/test/gpu/gpu_feature_browsertest.cc b/chrome/test/gpu/gpu_feature_browsertest.cc index 78da1a258..6fba303 100644 --- a/chrome/test/gpu/gpu_feature_browsertest.cc +++ b/chrome/test/gpu/gpu_feature_browsertest.cc @@ -20,6 +20,7 @@ #include "content/public/browser/gpu_data_manager.h" #include "content/public/common/content_switches.h" #include "content/public/common/gpu_info.h" +#include "content/public/test/browser_test_utils.h" #include "content/test/gpu/gpu_test_config.h" #include "content/test/gpu/test_switches.h" #include "net/base/net_util.h" @@ -93,7 +94,7 @@ class GpuFeatureTest : public InProcessBrowserTest { ASSERT_TRUE(file_util::PathExists(test_path)) << "Missing test file: " << test_path.value(); - ui_test_utils::DOMMessageQueue message_queue; + content::DOMMessageQueue message_queue; if (new_tab) { ui_test_utils::NavigateToURLWithDisposition( browser(), net::FilePathToFileURL(test_path), diff --git a/chrome/test/gpu/gpu_mapsgl_endurance_browsertest.cc b/chrome/test/gpu/gpu_mapsgl_endurance_browsertest.cc index 7ae07c3..7438090 100644 --- a/chrome/test/gpu/gpu_mapsgl_endurance_browsertest.cc +++ b/chrome/test/gpu/gpu_mapsgl_endurance_browsertest.cc @@ -77,7 +77,7 @@ class MapsGLEnduranceTest : public InProcessBrowserTest { gfx::Rect new_bounds = GetNewTabContainerBounds(tab_container_size); browser()->window()->SetBounds(new_bounds); - ui_test_utils::DOMMessageQueue message_queue; + content::DOMMessageQueue message_queue; ui_test_utils::NavigateToURL(browser(), GURL(url)); // Wait for notification that the test completed. diff --git a/chrome/test/gpu/gpu_pixel_browsertest.cc b/chrome/test/gpu/gpu_pixel_browsertest.cc index f21974c..9cf3563 100644 --- a/chrome/test/gpu/gpu_pixel_browsertest.cc +++ b/chrome/test/gpu/gpu_pixel_browsertest.cc @@ -169,7 +169,7 @@ class GpuPixelBrowserTest : public InProcessBrowserTest { ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser())); - ui_test_utils::DOMMessageQueue message_queue; + content::DOMMessageQueue message_queue; ui_test_utils::NavigateToURL(browser(), net::FilePathToFileURL(url)); // Wait for notification that page is loaded. diff --git a/chrome/test/gpu/webgl_conformance_test_expectations.txt b/chrome/test/gpu/webgl_conformance_test_expectations.txt deleted file mode 100644 index b16fe08..0000000 --- a/chrome/test/gpu/webgl_conformance_test_expectations.txt +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// This file contains a list of defective WebGL conformance tests. The expected -// format is: -// {BUG#} {MODIFIERS} : {TEST_NAME} = {PASS,FAIL,FLAKY,TIMEOUT,SKIP} -// -// MODIFIERS can be a combination of the below list: -// WIN XP VISTA WIN7 MAC LEOPARD SNOWLEOPARD LION LINUX CHROMEOS -// NVIDIA AMD INTEL -// 0x**** (this is a gpu's PCI device ID) -// DEBUG RELEASE -// -// TEST_NAME can be a specific test name, or have a '*' in the end, which -// indicates a prefix matching. -// -// Any tests whose expectations are not PASS will be skipped on the bots. -// -// Examples: -// 91530 MAC WIN LINUX : context_lost_restored = TIMEOUT -// 91533 WIN : gl_min_uniforms = FAIL -// 91531 MAC WIN LINUX : conformance_more_* = SKIP -// 91532 MAC NVIDIA 0x0640 : tex_image_and_sub_image_2d_with_video = PASS FAIL - -134743 WIN : conformance_extensions_oes_standard_derivatives = FAIL - -UNFILED MAC WIN LINUX : conformance_more_* = SKIP -UNFILED MAC WIN LINUX : conformance_ogles_* = SKIP - -UNFILED MAC WIN LINUX : conformance_state_gl_get_calls = FAIL -UNFILED MAC WIN LINUX : conformance_attribs_gl_vertex_attrib_render = FAIL - -UNFILED MAC DEBUG : conformance_uniforms_uniform_samplers_test = FAIL -UNFILED WIN : conformance_uniforms_uniform_samplers_test = FAIL -UNFILED LINUX NVIDIA AMD : conformance_uniforms_uniform_samplers_test = FAIL - -UNFILED WIN MAC : conformance_glsl_misc_shader_with_short_circuiting_operators = FAIL - -UNFILED WIN LINUX : conformance_textures_texture_attachment_formats = FAIL - -125963 MAC AMD : conformance_programs_use_program_crash_with_discard_in_fragment_shader = FAIL -125963 MAC AMD : conformance_typedarrays_data_view_test = FAIL - -125864 WIN : conformance_canvas_texture_bindings_unaffected_on_resize = FAIL -125864 WIN : conformance_glsl_misc_shader_with_comma_assignment = FAIL -125864 WIN : conformance_glsl_misc_shader_with_comma_conditional_assignment = FAIL -125864 WIN : conformance_programs_gl_bind_attrib_location_long_names_test = FAIL -125864 WIN : conformance_textures_texture_upload_cube_maps = FAIL - -131260 WIN DEBUG : conformance_extensions_oes_texture_float_with_video = FLAKY -131260 WIN DEBUG : conformance_textures_tex_image_and_sub_image_2d_with_video = FLAKY -131260 WIN DEBUG : conformance_textures_tex_image_and_sub_image_2d_with_video_rgb565 = FLAKY - -125864 MAC WIN LINUX : conformance_uniforms_uniform_default_values = FAIL - -125864 LINUX : conformance_extensions_ext_texture_filter_anisotropic = FAIL - -125864 MAC : conformance_glsl_misc_glsl_vertex_branch = FAIL -125864 MAC : conformance_glsl_misc_shader_with_gles_1_frag = FAIL - -UNFILED MAC WIN LINUX : conformance_glsl_misc_shader_with_conditional_scoping = FAIL -UNFILED MAC WIN LINUX : conformance_glsl_misc_shader_with_do_scoping = FAIL -UNFILED MAC WIN LINUX : conformance_glsl_misc_shader_with_for_scoping = FAIL -UNFILED MAC WIN LINUX : conformance_glsl_misc_shader_with_functional_scoping = FAIL -UNFILED MAC WIN LINUX : conformance_glsl_misc_shader_with_hex_int_constant_macro = FAIL -UNFILED MAC WIN LINUX : conformance_glsl_misc_shader_with_vec4_vec3_vec4_conditional = FAIL - -125679 MAC WIN LINUX : conformance_buffers_index_validation = FAIL -125679 MAC WIN LINUX : conformance_context_context_creation_and_destruction = FAIL -125679 WIN LINUX : conformance_glsl_misc_shader_with_non_reserved_words = FAIL - -113695 MAC WIN LINUX : conformance_misc_instanceof_test = FAIL - -UNFILED MAC WIN LINUX : conformance_textures_origin_clean_conformance = FAIL - -UNFILED WIN : conformance_glsl_functions_glsl_function_atan = FAIL -UNFILED WIN : conformance_glsl_functions_glsl_function_atan_xy = FAIL -UNFILED WIN : conformance_glsl_misc_struct_nesting_under_maximum = FAIL - -UNFILED WIN : conformance_extensions_webgl_compressed_texture_s3tc = FAIL -UNFILED WIN : conformance_glsl_samplers_glsl_function_texture2d_bias = FAIL - -UNFILED XP NVIDIA : conformance_textures_texture_mips = FAIL - -UNFILED WIN7 INTEL : conformance_context_context_attributes_alpha_depth_stencil_antialias = FAIL -UNFILED WIN7 INTEL : conformance_context_context_lost_restored = FAIL -UNFILED WIN7 INTEL : conformance_context_premultiplyalpha_test = FAIL -UNFILED WIN7 INTEL : conformance_extensions_oes_texture_float = FAIL -UNFILED WIN7 INTEL : conformance_limits_gl_min_attribs = FAIL -UNFILED WIN7 INTEL : conformance_limits_gl_max_texture_dimensions = FAIL -UNFILED WIN7 INTEL : conformance_limits_gl_min_textures = FAIL -UNFILED WIN7 INTEL : conformance_limits_gl_min_uniforms = FAIL -UNFILED WIN7 INTEL : conformance_rendering_gl_clear = FAIL -UNFILED WIN7 INTEL : conformance_textures_copy_tex_image_and_sub_image_2d = FAIL -UNFILED WIN7 INTEL : conformance_textures_gl_teximage = FAIL -UNFILED WIN7 INTEL : conformance_textures_tex_image_and_sub_image_2d_with_array_buffer_view = FAIL -UNFILED WIN7 INTEL : conformance_textures_tex_image_and_sub_image_2d_with_image_data = FAIL -UNFILED WIN7 INTEL : conformance_textures_tex_image_with_format_and_type = FAIL -UNFILED WIN7 INTEL : conformance_textures_tex_sub_image_2d = FAIL -UNFILED WIN7 INTEL : conformance_textures_texparameter_test = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_active_bind_2 = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_active_bind = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_complete = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_formats_test = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_mips = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_npot = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_size_cube_maps = FAIL -UNFILED WIN7 INTEL : conformance_glsl_functions_glsl_function_asin = FAIL -UNFILED WIN7 INTEL : conformance_glsl_variables_gl_fragcoord = FAIL -UNFILED WIN7 INTEL : conformance_glsl_variables_gl_pointcoord = FAIL - -UNFILED WIN7 INTEL : conformance_misc_delayed_drawing = FAIL -UNFILED WIN7 INTEL : conformance_textures_texture_clear = FAIL -UNFILED WIN7 INTEL : conformance_glsl_samplers_glsl_function_texture2dlod = FAIL - -UNFILED WIN7 INTEL : conformance_attribs_gl_disabled_vertex_attrib = FAIL -UNFILED WIN7 INTEL : conformance_extensions_oes_texture_float_with_image_data = FAIL -UNFILED WIN7 INTEL : conformance_glsl_samplers_glsl_function_texture2dproj = FLAKY - -UNFILED WIN7 INTEL : conformance_renderbuffers_framebuffer_state_restoration = FAIL -UNFILED WIN7 INTEL : conformance_textures_tex_image_and_sub_image_2d_with_image_data_rgb565 = FAIL -UNFILED WIN7 INTEL : conformance_textures_tex_image_and_sub_image_2d_with_image_data_rgba4444 = FAIL -UNFILED WIN7 INTEL : conformance_textures_tex_image_and_sub_image_2d_with_image_data_rgba5551 = FAIL - -UNFILED MAC INTEL : conformance_glsl_functions_glsl_function_asin = FAIL -UNFILED MAC INTEL : conformance_glsl_functions_glsl_function_dot = FAIL -UNFILED MAC INTEL : conformance_glsl_functions_glsl_function_faceforward = FAIL -UNFILED MAC INTEL : conformance_glsl_functions_glsl_function_length = FAIL -UNFILED MAC INTEL : conformance_glsl_functions_glsl_function_normalize = FAIL -UNFILED MAC INTEL : conformance_glsl_functions_glsl_function_reflect = FAIL -UNFILED MAC INTEL : conformance_glsl_functions_glsl_function_smoothstep_gentype = FAIL -UNFILED MAC INTEL : conformance_glsl_variables_gl_pointcoord = FAIL -UNFILED MAC INTEL : conformance_limits_gl_max_texture_dimensions = FAIL -UNFILED MAC INTEL : conformance_rendering_line_loop_tri_fan = FAIL - -UNFILED MAC AMD : conformance_attribs_gl_vertex_attrib = FAIL -UNFILED MAC AMD : conformance_attribs_gl_vertexattribpointer_offsets = FAIL -UNFILED MAC AMD : conformance_attribs_gl_vertexattribpointer = FAIL -UNFILED MAC AMD : conformance_misc_type_conversion_test = FAIL -UNFILED MAC AMD : conformance_renderbuffers_framebuffer_object_attachment = FAIL -UNFILED MAC AMD : conformance_textures_copy_tex_image_and_sub_image_2d = FAIL -UNFILED MAC AMD : conformance_typedarrays_array_unit_tests = FAIL -UNFILED MAC AMD : conformance_glsl_functions_glsl_function_distance = FAIL -UNFILED MAC AMD : conformance_glsl_functions_glsl_function_dot = FAIL -UNFILED MAC AMD : conformance_glsl_functions_glsl_function_length = FAIL -UNFILED MAC AMD : conformance_glsl_variables_gl_pointcoord = FAIL -UNFILED MAC AMD : conformance_reading_read_pixels_test = TIMEOUT -122651 MAC AMD : conformance_misc_object_deletion_behaviour = TIMEOUT - -// Retina Macbook bots -144312 MAC NVIDIA 0x0fd5 : conformance_textures_gl_teximage = FLAKY - -UNFILED LINUX NVIDIA : conformance_uniforms_uniform_location = FAIL -UNFILED LINUX NVIDIA : conformance_textures_texture_mips = FAIL - -UNFILED LINUX INTEL : conformance_renderbuffers_framebuffer_object_attachment = FAIL -UNFILED LINUX INTEL : conformance_state_gl_object_get_calls = FAIL -UNFILED LINUX INTEL : conformance_textures_texture_npot = FAIL -UNFILED LINUX INTEL : conformance_glsl_variables_gl_pointcoord = FAIL - -UNFILED LINUX INTEL : conformance_extensions_webgl_compressed_texture_s3tc = FAIL -UNFILED LINUX INTEL : conformance_glsl_samplers_glsl_function_texture2dlod = FAIL - -UNFILED LINUX INTEL : conformance_glsl_functions_glsl_function_cos = FAIL - -UNFILED LINUX INTEL : conformance_canvas_framebuffer_bindings_unaffected_on_resize = FAIL - -UNFILED LINUX AMD : conformance_misc_object_deletion_behaviour = FAIL -UNFILED LINUX AMD : conformance_textures_texture_mips = FAIL - -121139 MAC : conformance_textures_texture_size = FAIL -121139 WIN INTEL : conformance_textures_texture_size = FAIL -121139 LINUX AMD : conformance_textures_texture_size = FAIL - -137892 LINUX INTEL : conformance_glsl_functions_glsl_function_acos = FAIL -137892 LINUX INTEL : conformance_glsl_functions_glsl_function_asin = FAIL -137892 LINUX INTEL : conformance_glsl_functions_glsl_function_atan = FAIL -137892 LINUX INTEL : conformance_glsl_functions_glsl_function_atan_xy = FAIL -137892 LINUX INTEL : conformance_glsl_functions_glsl_function_sin = FAIL -137892 LINUX INTEL : conformance_reading_read_pixels_test = FAIL -137892 LINUX INTEL : conformance_rendering_point_size = FAIL -137892 LINUX INTEL : conformance_textures_texture_mips = FAIL - -//////////////////////////////////////////////////////////////////////////////// -// -// Temprory entries: they should be removed once the bugs are fixed. -// -//////////////////////////////////////////////////////////////////////////////// diff --git a/chrome/test/gpu/webgl_conformance_tests.cc b/chrome/test/gpu/webgl_conformance_tests.cc index 7e23795..70d334f 100644 --- a/chrome/test/gpu/webgl_conformance_tests.cc +++ b/chrome/test/gpu/webgl_conformance_tests.cc @@ -10,6 +10,7 @@ #include "chrome/test/base/in_process_browser_test.h" #include "chrome/test/base/ui_test_utils.h" #include "content/public/common/content_switches.h" +#include "content/public/test/browser_test_utils.h" #include "content/test/gpu/gpu_test_config.h" #include "content/test/gpu/gpu_test_expectations_parser.h" #include "net/base/net_util.h" @@ -58,7 +59,7 @@ class WebGLConformanceTests : public InProcessBrowserTest { return; } - ui_test_utils::DOMMessageQueue message_queue; + content::DOMMessageQueue message_queue; ui_test_utils::NavigateToURL(browser(), net::FilePathToFileURL(test_path_)); ui_test_utils::NavigateToURL( browser(), GURL("javascript:start('" + url + "');")); |