OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/string_util.h" | 5 #include "base/string_util.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/renderer/form_manager.h" | 7 #include "chrome/renderer/form_manager.h" |
8 #include "chrome/test/render_view_test.h" | 8 #include "chrome/test/render_view_test.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" |
(...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2447 | 2447 |
2448 WebElement e = web_frame->document().getElementById("firstname"); | 2448 WebElement e = web_frame->document().getElementById("firstname"); |
2449 WebFormControlElement firstname = e.to<WebFormControlElement>(); | 2449 WebFormControlElement firstname = e.to<WebFormControlElement>(); |
2450 | 2450 |
2451 // Hidden form control element should not have a label set. | 2451 // Hidden form control element should not have a label set. |
2452 FormManager form_manager; | 2452 FormManager form_manager; |
2453 EXPECT_EQ(string16(), form_manager.LabelForElement(firstname)); | 2453 EXPECT_EQ(string16(), form_manager.LabelForElement(firstname)); |
2454 } | 2454 } |
2455 | 2455 |
2456 } // namespace | 2456 } // namespace |
OLD | NEW |