Skip to content

Commit 73c10bd

Browse files
committed
Add improved test cases to tests that cover ui5 sap.m.X type widgets
1 parent 8887954 commit 73c10bd

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
| source1.xml:5:5:7:28 | value={/input} | The binding path `/input` is a user input source. |
2+
| source1.xml:8:5:10:28 | value={/input} | The binding path `/input` is a user input source. |
3+
| source1.xml:11:5:13:28 | value={/input} | The binding path `/input` is a user input source. |
4+
| source1.xml:14:5:16:28 | value={/input} | The binding path `/input` is a user input source. |
5+
| source1.xml:17:5:19:28 | value={/input} | The binding path `/input` is a user input source. |
6+
| source1.xml:20:5:22:28 | value={/input} | The binding path `/input` is a user input source. |
7+
| source1.xml:23:5:25:28 | value={/input} | The binding path `/input` is a user input source. |
8+
| source1.xml:26:5:28:28 | value={/input} | The binding path `/input` is a user input source. |
9+
| source1.xml:29:5:31:28 | value={/input} | The binding path `/input` is a user input source. |
10+
| source1.xml:32:5:34:28 | value={/input} | The binding path `/input` is a user input source. |
11+
| source1.xml:35:5:37:28 | value={/input} | The binding path `/input` is a user input source. |

javascript/frameworks/ui5/test/models/source/source1.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,34 @@
55
<Input placeholder="Enter Payload"
66
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
77
value="{/input}" /> <!--User input source sap.m.Input.value -->
8+
<ComboBoxTextField placeholder="Enter Payload"
9+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
10+
value="{/input}" /> <!--User input source sap.m.ComboBoxTextField.value -->
11+
<MaskEnabler placeholder="Enter Payload"
12+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
13+
value="{/input}" /> <!--User input source sap.m.MaskEnabler.value -->
14+
<MaskInput placeholder="Enter Payload"
15+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
16+
value="{/input}" /> <!--User input source sap.m.MaskInput.value -->
17+
<TextArea placeholder="Enter Payload"
18+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
19+
value="{/input}" /> <!--User input source sap.m.TextArea.value -->
20+
<DatePicker placeholder="Enter Payload"
21+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
22+
value="{/input}" /> <!--User input source sap.m.DatePicker.value -->
23+
<ComboBoxBase placeholder="Enter Payload"
24+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
25+
value="{/input}" /> <!--User input source sap.m.ComboBoxBase.value -->
26+
<SearchField placeholder="Enter Payload"
27+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
28+
value="{/input}" /> <!--User input source sap.m.SearchField.value -->
29+
<MultiInput placeholder="Enter Payload"
30+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
31+
value="{/input}" /> <!--User input source sap.m.MultiInput.value -->
32+
<FeedInput placeholder="Enter Payload"
33+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
34+
value="{/input}" /> <!--User input source sap.m.FeedInput.value -->
35+
<InputBase placeholder="Enter Payload"
36+
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
37+
value="{/input}" /> <!--User input source sap.m.InputBase.value -->
838
</mvc:View>

javascript/frameworks/ui5/test/queries/UI5Xss/xss-html-control/webapp/view/app.view.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,24 @@
22
xmlns="sap.m"
33
xmlns:core="sap.ui.core"
44
xmlns:mvc="sap.ui.core.mvc">
5-
<Input placeholder="Enter Payload"
5+
<Input placeholder="Enter Input Payload"
66
description="Try: &lt;img src=x onerror=alert(&quot;XSS&quot;)&gt;"
77
value="{/input}" /> <!--User input source sap.m.Input.value -->
8+
<ComboBoxTextField placeholder="Enter ComboBoxTextField Payload"
9+
value="{/input}" /> <!--User input source sap.m.ComboBoxTextField.value -->
10+
<DatePicker placeholder="Enter DatePicker Payload"
11+
value="{/input}" /> <!--User input source sap.m.DatePicker.value -->
12+
<TextArea placeholder="Enter TextArea Payload"
13+
value="{/input}" /> <!--User input source sap.m.TextArea.value -->
14+
<ComboBoxBase placeholder="Enter ComboBoxBase Payload"
15+
value="{/input}" /> <!--User input source sap.m.ComboBoxBase.value -->
16+
<SearchField placeholder="Enter SearchField Payload"
17+
value="{/input}" /> <!--User input source sap.m.SearchField.value -->
18+
<MultiInput placeholder="Enter MultiInput Payload"
19+
value="{/input}" /> <!--User input source sap.m.MultiInput.value -->
20+
<FeedInput placeholder="Enter FeedInput Payload"
21+
value="{/input}" /> <!--User input source sap.m.FeedInput.value -->
22+
<InputBase placeholder="Enter InputBase Payload"
23+
value="{/input}" /> <!--User input source sap.m.InputBase.value -->
824
<core:HTML content="{/input}"/> <!--XSS sink sap.ui.core.HTML.content -->
925
</mvc:View>

0 commit comments

Comments
 (0)