Commit 545cbc7d authored by leilei's avatar leilei Committed by Commit bot

Fix integration test failure caused by issue/1303993003.

issue/1303993003 renames Media Router route "title" field to
"description".

BUG=

Review URL: https://codereview.chromium.org/1305163009

Cr-Commit-Position: refs/heads/master@{#347881}
parent 4824734c
...@@ -32,18 +32,18 @@ IN_PROC_BROWSER_TEST_F(MediaRouterIntegrationBrowserTest, MANUAL_Dialog_Basic) { ...@@ -32,18 +32,18 @@ IN_PROC_BROWSER_TEST_F(MediaRouterIntegrationBrowserTest, MANUAL_Dialog_Basic) {
// Verify the new route. // Verify the new route.
script = base::StringPrintf( script = base::StringPrintf(
"domAutomationController.send(window.document.getElementById(" "domAutomationController.send(window.document.getElementById("
"'media-router-container').routeList[0].title)"); "'media-router-container').routeList[0].description)");
std::string route_title = ExecuteScriptAndExtractString( std::string route_description = ExecuteScriptAndExtractString(
dialog_contents, script); dialog_contents, script);
ASSERT_EQ("Test Route", route_title); ASSERT_EQ("Test Route", route_description);
script = base::StringPrintf( script = base::StringPrintf(
"domAutomationController.send(window.document.getElementById(" "domAutomationController.send(window.document.getElementById("
"'media-router-container').routeList[0].id)"); "'media-router-container').routeList[0].id)");
std::string route_id = ExecuteScriptAndExtractString(dialog_contents, script); std::string route_id = ExecuteScriptAndExtractString(dialog_contents, script);
std::string current_route = base::StringPrintf( std::string current_route = base::StringPrintf(
"{'id': '%s', 'sinkId': '%s', 'title': '%s', 'isLocal': '%s'}", "{'id': '%s', 'sinkId': '%s', 'description': '%s', 'isLocal': '%s'}",
route_id.c_str(), "id1", route_title.c_str(), "false"); route_id.c_str(), "id1", route_description.c_str(), "false");
ChooseSink(web_contents, "id1", current_route); ChooseSink(web_contents, "id1", current_route);
// TODO(leilei): Verify the router details dialog, including the title and // TODO(leilei): Verify the router details dialog, including the title and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment