Skip to content

Commit 33a6e72

Browse files
committed
Swift: Add a test for UISearchTextField.
1 parent e16277e commit 33a6e72

File tree

1 file changed

+4
-1
lines changed
  • swift/ql/test/library-tests/dataflow/flowsources

1 file changed

+4
-1
lines changed

swift/ql/test/library-tests/dataflow/flowsources/uikit.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ class UITextField: UIControl {
1919
set { }
2020
}
2121
}
22+
class UISearchTextField : UITextField {
23+
}
2224

2325
// --- tests ---
2426

25-
func testUITextField(textField: UITextField) {
27+
func testUITextField(textField: UITextField, searchTextField: UISearchTextField) {
2628
_ = textField.text // $ source=local
2729
_ = textField.attributedText // $ source=local
2830
_ = textField.placeholder // GOOD (not input)
2931
_ = textField.text?.uppercased() // $ source=local
32+
_ = searchTextField.text // $ source=local
3033
}

0 commit comments

Comments
 (0)