| Index: content/browser/session_history_browsertest.cc
|
| diff --git a/content/browser/session_history_browsertest.cc b/content/browser/session_history_browsertest.cc
|
| index 232ad17756af2b481d956546eabe6cd87f887606..c81f89c0830b936b24722cda3b2f348a5dd52589 100644
|
| --- a/content/browser/session_history_browsertest.cc
|
| +++ b/content/browser/session_history_browsertest.cc
|
| @@ -431,14 +431,18 @@ IN_PROC_BROWSER_TEST_F(SessionHistoryTest, HistoryLength) {
|
| int length;
|
| ASSERT_TRUE(ExecuteJavaScriptAndExtractInt(
|
| shell()->web_contents()->GetRenderViewHost(),
|
| - L"", L"domAutomationController.send(history.length)", &length));
|
| + "",
|
| + "domAutomationController.send(history.length)",
|
| + &length));
|
| EXPECT_EQ(1, length);
|
|
|
| NavigateToURL(shell(), GetURL("title1.html"));
|
|
|
| ASSERT_TRUE(ExecuteJavaScriptAndExtractInt(
|
| shell()->web_contents()->GetRenderViewHost(),
|
| - L"", L"domAutomationController.send(history.length)", &length));
|
| + "",
|
| + "domAutomationController.send(history.length)",
|
| + &length));
|
| EXPECT_EQ(2, length);
|
|
|
| // Now test that history.length is updated when the navigation is committed.
|
| @@ -446,7 +450,9 @@ IN_PROC_BROWSER_TEST_F(SessionHistoryTest, HistoryLength) {
|
|
|
| ASSERT_TRUE(ExecuteJavaScriptAndExtractInt(
|
| shell()->web_contents()->GetRenderViewHost(),
|
| - L"", L"domAutomationController.send(history.length)", &length));
|
| + "",
|
| + "domAutomationController.send(history.length)",
|
| + &length));
|
| EXPECT_EQ(3, length);
|
|
|
| GoBack();
|
| @@ -457,7 +463,9 @@ IN_PROC_BROWSER_TEST_F(SessionHistoryTest, HistoryLength) {
|
|
|
| ASSERT_TRUE(ExecuteJavaScriptAndExtractInt(
|
| shell()->web_contents()->GetRenderViewHost(),
|
| - L"", L"domAutomationController.send(history.length)", &length));
|
| + "",
|
| + "domAutomationController.send(history.length)",
|
| + &length));
|
| EXPECT_EQ(2, length);
|
| }
|
|
|
|
|