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

Side by Side Diff: chrome/test/gpu/webgl_conformance_tests.cc

Issue 7744031: Remove obsolete test timeouts and convert callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/test/test_timeouts.h" 7 #include "base/test/test_timeouts.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/test/automation/tab_proxy.h" 10 #include "chrome/test/automation/tab_proxy.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, 61 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
62 tab->NavigateToURL(net::FilePathToFileURL(test_path))); 62 tab->NavigateToURL(net::FilePathToFileURL(test_path)));
63 63
64 ASSERT_TRUE(tab->NavigateToURLAsync( 64 ASSERT_TRUE(tab->NavigateToURLAsync(
65 GURL("javascript:start('" + url + "');"))); 65 GURL("javascript:start('" + url + "');")));
66 66
67 // Block until the test completes. 67 // Block until the test completes.
68 ASSERT_TRUE(WaitUntilJavaScriptCondition( 68 ASSERT_TRUE(WaitUntilJavaScriptCondition(
69 tab, L"", L"window.domAutomationController.send(!running);", 69 tab, L"", L"window.domAutomationController.send(!running);",
70 TestTimeouts::huge_test_timeout_ms())); 70 TestTimeouts::large_test_timeout_ms()));
71 71
72 // Read out the test result. 72 // Read out the test result.
73 std::wstring result, message; 73 std::wstring result, message;
74 ASSERT_TRUE(tab->ExecuteAndExtractString( 74 ASSERT_TRUE(tab->ExecuteAndExtractString(
75 L"", 75 L"",
76 L"window.domAutomationController.send(JSON.stringify(result));", 76 L"window.domAutomationController.send(JSON.stringify(result));",
77 &result)); 77 &result));
78 ASSERT_TRUE(tab->ExecuteAndExtractString( 78 ASSERT_TRUE(tab->ExecuteAndExtractString(
79 L"", 79 L"",
80 L"window.domAutomationController.send(message);", 80 L"window.domAutomationController.send(message);",
81 &message)); 81 &message));
82 82
83 EXPECT_EQ(WideToUTF8(result),"true") << WideToUTF8(message); 83 EXPECT_EQ(WideToUTF8(result),"true") << WideToUTF8(message);
84 } 84 }
85 }; 85 };
86 86
87 #define CONFORMANCE_TEST(name, url) \ 87 #define CONFORMANCE_TEST(name, url) \
88 TEST_F(WebGLConformanceTests, name) { \ 88 TEST_F(WebGLConformanceTests, name) { \
89 RunTest(url); \ 89 RunTest(url); \
90 } 90 }
91 91
92 // The test declarations are located in webgl_conformance_test_list_autogen.h, 92 // The test declarations are located in webgl_conformance_test_list_autogen.h,
93 // because the list is automatically generated by a script. 93 // because the list is automatically generated by a script.
94 // See: generate_webgl_conformance_test_list.py 94 // See: generate_webgl_conformance_test_list.py
95 #include "webgl_conformance_test_list_autogen.h" 95 #include "webgl_conformance_test_list_autogen.h"
96 96
97 } // namespace 97 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/options_ui_uitest.cc ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698