Index: chrome/common/render_messages_unittest.cc |
=================================================================== |
--- chrome/common/render_messages_unittest.cc (revision 57849) |
+++ chrome/common/render_messages_unittest.cc (working copy) |
@@ -23,6 +23,10 @@ |
(1 << webkit_glue::WebAccessibility::STATE_CHECKED) | |
(1 << webkit_glue::WebAccessibility::STATE_FOCUSED); |
input.location = WebKit::WebRect(11, 22, 333, 444); |
+ input.html_attributes.push_back( |
+ std::pair<string16, string16>(ASCIIToUTF16("id"), ASCIIToUTF16("a"))); |
+ input.html_attributes.push_back( |
+ std::pair<string16, string16>(ASCIIToUTF16("class"), ASCIIToUTF16("b"))); |
IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL); |
IPC::WriteParam(&msg, input); |
@@ -39,6 +43,15 @@ |
EXPECT_EQ(input.state, output.state); |
EXPECT_EQ(input.location, output.location); |
EXPECT_EQ(input.children.size(), output.children.size()); |
+ EXPECT_EQ(input.html_attributes.size(), output.html_attributes.size()); |
+ EXPECT_EQ(input.html_attributes[0].first, |
+ output.html_attributes[0].first); |
+ EXPECT_EQ(input.html_attributes[0].second, |
+ output.html_attributes[0].second); |
+ EXPECT_EQ(input.html_attributes[1].first, |
+ output.html_attributes[1].first); |
+ EXPECT_EQ(input.html_attributes[1].second, |
+ output.html_attributes[1].second); |
// Test a corrupt case. |
IPC::Message bad_msg(1, 2, IPC::Message::PRIORITY_NORMAL); |