OLD | NEW |
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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, | 48 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, |
49 tab->NavigateToURL(net::FilePathToFileURL(test_path))); | 49 tab->NavigateToURL(net::FilePathToFileURL(test_path))); |
50 | 50 |
51 // Start the tests. | 51 // Start the tests. |
52 ASSERT_TRUE(tab->NavigateToURLAsync(GURL("javascript:__start_all();"))); | 52 ASSERT_TRUE(tab->NavigateToURLAsync(GURL("javascript:__start_all();"))); |
53 | 53 |
54 // Block until the tests completes. | 54 // Block until the tests completes. |
55 ASSERT_TRUE(WaitUntilJavaScriptCondition( | 55 ASSERT_TRUE(WaitUntilJavaScriptCondition( |
56 tab, L"", L"window.domAutomationController.send(!__running_all);", | 56 tab, L"", L"window.domAutomationController.send(!__running_all);", |
57 TestTimeouts::huge_test_timeout_ms())); | 57 TestTimeouts::large_test_timeout_ms())); |
58 | 58 |
59 // Read out the results. | 59 // Read out the results. |
60 std::wstring json; | 60 std::wstring json; |
61 ASSERT_TRUE(tab->ExecuteAndExtractString( | 61 ASSERT_TRUE(tab->ExecuteAndExtractString( |
62 L"", | 62 L"", |
63 L"window.domAutomationController.send(" | 63 L"window.domAutomationController.send(" |
64 L"JSON.stringify(__calc_results_total()));", | 64 L"JSON.stringify(__calc_results_total()));", |
65 &json)); | 65 &json)); |
66 | 66 |
67 std::map<std::string, std::string> results; | 67 std::map<std::string, std::string> results; |
(...skipping 30 matching lines...) Expand all Loading... |
98 TEST_F(FrameRateTest, content) { \ | 98 TEST_F(FrameRateTest, content) { \ |
99 RunTest(#content, ""); \ | 99 RunTest(#content, ""); \ |
100 } \ | 100 } \ |
101 TEST_F(FrameRateTest_Reference, content) { \ | 101 TEST_F(FrameRateTest_Reference, content) { \ |
102 RunTest(#content, "_ref"); \ | 102 RunTest(#content, "_ref"); \ |
103 } | 103 } |
104 FRAME_RATE_TEST(blank); | 104 FRAME_RATE_TEST(blank); |
105 FRAME_RATE_TEST(googleblog); | 105 FRAME_RATE_TEST(googleblog); |
106 | 106 |
107 } // namespace | 107 } // namespace |
OLD | NEW |