Skip to content

Commit

Permalink
test(Formatter): Add positive and negative fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
maxreichmann committed Jan 29, 2025
1 parent 8d2ad2f commit 64ddc1d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sap.ui.define(
["sap/m/Input"],
(Input) => {
const input = new Input({
value: "{ path: 'invoice>Status', formatter: 'ui5.walkthrough.model.formatter.statusText' }"
});

input.applySettings({
value: "{ path: 'invoice>Status', formatter: 'ui5.walkthrough.model.formatter.statusText' }",
});
}
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sap.ui.define(
["sap/m/Input", "ui5/walkthrough/model/formatter"],
(Input, formatter) => {
// Although the formatter property is not a global notation,
// it should still get detected if it is a string:
const input = new Input({
value: "{ path: 'invoice>Status', formatter: 'formatter.statusText' }"
});
}
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sap.ui.define(
["sap/m/Input", "ui5/walkthrough/model/formatter"],
(Input, formatter) => {
const input = new Input({
value: "{ path: 'invoice>Status', formatter: formatter.statusText }"
});
}
);

0 comments on commit 64ddc1d

Please sign in to comment.