Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: ios/web/web_state/js/common_js_unittest.mm

Issue 2603973002: Import Objective C Frameworks (Closed)
Patch Set: only ios Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/public/web_state/crw_web_user_interface_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <stddef.h>
6 #include <Foundation/Foundation.h> 6 #import <Foundation/Foundation.h>
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #import "ios/web/public/test/web_test_with_web_state.h" 9 #import "ios/web/public/test/web_test_with_web_state.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/gtest_mac.h" 11 #include "testing/gtest_mac.h"
12 12
13 namespace { 13 namespace {
14 14
15 // Struct for isTextField() test data. 15 // Struct for isTextField() test data.
16 struct TextFieldTestElement { 16 struct TextFieldTestElement {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 stringWithFormat:@"__gCrWeb.common.isTextField(" 81 stringWithFormat:@"__gCrWeb.common.isTextField("
82 "window.document.getElementsByName('%s')[%d])", 82 "window.document.getElementsByName('%s')[%d])",
83 element.element_name, element.element_index]); 83 element.element_name, element.element_index]);
84 EXPECT_NSEQ(element.expected_is_text_field ? @YES : @NO, result) 84 EXPECT_NSEQ(element.expected_is_text_field ? @YES : @NO, result)
85 << element.element_name << " with index " << element.element_index 85 << element.element_name << " with index " << element.element_index
86 << " isTextField(): " << element.expected_is_text_field; 86 << " isTextField(): " << element.expected_is_text_field;
87 } 87 }
88 } 88 }
89 89
90 } // namespace web 90 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/web_state/crw_web_user_interface_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698