OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 gfx::Size container_size(400, 300); | 454 gfx::Size container_size(400, 300); |
455 base::FilePath url = | 455 base::FilePath url = |
456 test_data_dir().AppendASCII("pixel_webgl.html"); | 456 test_data_dir().AppendASCII("pixel_webgl.html"); |
457 RunPixelTest(container_size, url, ref_img_revision_update, | 457 RunPixelTest(container_size, url, ref_img_revision_update, |
458 ref_pixels, ref_pixel_count); | 458 ref_pixels, ref_pixel_count); |
459 } | 459 } |
460 | 460 |
461 IN_PROC_BROWSER_TEST_F(GpuPixelBrowserTest, MANUAL_CSS3DBlueBox) { | 461 IN_PROC_BROWSER_TEST_F(GpuPixelBrowserTest, MANUAL_CSS3DBlueBox) { |
462 // If test baseline needs to be updated after a given revision, update the | 462 // If test baseline needs to be updated after a given revision, update the |
463 // following number. If no revision requirement, then 0. | 463 // following number. If no revision requirement, then 0. |
464 const int64 ref_img_revision_update = 209827; | 464 const int64 ref_img_revision_update = 223622; |
465 | 465 |
466 const ReferencePixel ref_pixels[] = { | 466 const ReferencePixel ref_pixels[] = { |
467 // x, y, r, g, b | 467 // x, y, r, g, b |
468 {70, 50, 0, 0, 255}, | 468 {70, 50, 0, 0, 255}, |
469 {150, 50, 0, 0, 0}, | 469 {150, 50, 0, 0, 0}, |
470 {70, 90, 0, 0, 255}, | 470 {70, 90, 0, 0, 255}, |
471 {150, 90, 0, 0, 255}, | 471 {150, 90, 0, 0, 255}, |
472 {70, 125, 0, 0, 255}, | 472 {70, 125, 0, 0, 255}, |
473 {150, 125, 0, 0, 0} | 473 {150, 125, 0, 0, 0} |
474 }; | 474 }; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 559 |
560 gfx::Size container_size(400, 300); | 560 gfx::Size container_size(400, 300); |
561 base::FilePath url = | 561 base::FilePath url = |
562 test_data_dir().AppendASCII("pixel_browser_plugin.html"); | 562 test_data_dir().AppendASCII("pixel_browser_plugin.html"); |
563 RunPixelTest(container_size, url, ref_img_revision_update, | 563 RunPixelTest(container_size, url, ref_img_revision_update, |
564 ref_pixels, ref_pixel_count); | 564 ref_pixels, ref_pixel_count); |
565 } | 565 } |
566 | 566 |
567 } // namespace content | 567 } // namespace content |
568 | 568 |
OLD | NEW |