Skip to content

Commit

Permalink
feat: add support for fiori_3 theme (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximnaidenov authored Oct 14, 2019
1 parent 3709423 commit 992cc98
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions docs/config/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Values and defaults:
* platformName - one of (windows|mac|linux|android|ios|winphone)} - platform name, default: windows
* platformVersion - platform number like 7,8 for windows; 4.4,5.0 for android;, default: *
* platformResolution - format: /\d+x\d+/- platform resolution, WIDTHxHEIGHT, default: resolved from available
* ui5.theme - one of (bluecrystal|belize|hcp) - UI5 theme, default belize
* ui5.theme - one of (bluecrystal|belize|fiori_3) - UI5 theme, default belize
* ui5.direction - one of (rtl|ltr) - UI5 direction, default: ltr
* ui5.mode - one of (cosy|compact) - UI5 mode, default: cosy

Expand All @@ -39,10 +39,12 @@ browsers:[{
Specify on command line in ':' -separated notation:
```
$ uiveri5 --browsers=ie:11
$ uiveri5 --browsers=chrome::::::fiori_3
$ uiveri5 --browsers=chrome:::::::rtl
$ uiveri5 --browsers=chrome::::::::compact
```
Runtime attributes are extracted sequentially in the order they are defined above.


Specify chrome mobile emulator:
```
$ uiveri5 --browsers=chromeMobileEmulation
Expand Down
2 changes: 1 addition & 1 deletion e2e/browser/fixture/apps/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- to use latest OpenUI5 nightly build, change source to "https://openui5nightly.hana.ondemand.com/resources/sap-ui-core.js" -->
<script src="https://openui5nightly.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_belize"
data-sap-ui-theme="sap_fiori_3"
data-sap-ui-libs="sap.m">
</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion e2e/scenario/fixture/apps/formauth/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<script src="https://openui5nightly.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_belize"
data-sap-ui-theme="sap_fiori_3"
data-sap-ui-libs="sap.m">
</script>

Expand Down
2 changes: 1 addition & 1 deletion e2e/scenario/fixture/apps/logs/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script src="https://openui5nightly.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_belize"
data-sap-ui-theme="sap_fiori_3"
data-sap-ui-libs="sap.m">
</script>

Expand Down
2 changes: 1 addition & 1 deletion e2e/scenario/fixture/apps/plugin/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script src="https://openui5nightly.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_belize"
data-sap-ui-theme="sap_fiori_3"
data-sap-ui-libs="sap.m">
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/runtimeResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var supportedPlatformNames = [
'windows','mac','linux','android','ios','winphone'
];
var supportedUI5Themes = [
'bluecrystal','belize','hcb'
'bluecrystal','belize','fiori_3'
];
var supportedUI5Directions = [
'ltr','rtl'
Expand All @@ -51,7 +51,7 @@ var supportedUI5Modes = [
* @param {number} platformVersion - platform number like 7,8 for windows; 4.4,5.0 for android;, default: *
* @param {string(default|/\d+x\d+/)} platformResolution - platform resolution, WIDTHxHEIGHT, default: resolved from available
* @param {string} deviceName - device name, default: *
* @param {string(bluecrystal|belize|hcb)} ui5.theme - UI5 theme, default belize
* @param {string(bluecrystal|belize|fiori_3)} ui5.theme - UI5 theme, default belize
* @param {string(rtl|ltr)} ui5.direction - UI5 direction, default: ltr
* @param {string(cozy|compact)} ui5.mode - UI5 mode, default: cozy
* @param {Object} capabilities - additional browser capabilities object
Expand Down

0 comments on commit 992cc98

Please sign in to comment.