OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
5 #import <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
6 | 7 |
| 8 #include "base/macros.h" |
7 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
8 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
9 #include "ios/web/public/test/web_test_util.h" | 11 #include "ios/web/public/test/web_test_util.h" |
10 #import "ios/web/test/web_test.h" | 12 #import "ios/web/test/web_test.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "testing/gtest_mac.h" | 14 #include "testing/gtest_mac.h" |
13 | 15 |
14 // Unit tests for ios/web/web_state/js/resources/common.js. | 16 // Unit tests for ios/web/web_state/js/resources/common.js. |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 "__gCrWeb.common.isTextField(" | 92 "__gCrWeb.common.isTextField(" |
91 "window.document.getElementsByName('%s')[%u])", | 93 "window.document.getElementsByName('%s')[%u])", |
92 element.element_name, element.element_index))); | 94 element.element_name, element.element_index))); |
93 EXPECT_NSEQ(element.expected_is_text_field ? @"true" : @"false", result) | 95 EXPECT_NSEQ(element.expected_is_text_field ? @"true" : @"false", result) |
94 << element.element_name << " with index " << element.element_index | 96 << element.element_name << " with index " << element.element_index |
95 << " isTextField(): " << element.expected_is_text_field; | 97 << " isTextField(): " << element.expected_is_text_field; |
96 } | 98 } |
97 } | 99 } |
98 | 100 |
99 } // namespace | 101 } // namespace |
OLD | NEW |