TylerBreau commented on PR #181:
URL: https://github.com/apache/cordova-common/pull/181#issuecomment-1284078001
Seems like it is not possible to support additional attributes on
preferences.
describe('Preference', () => {
it('Test 007: Preference supports xml passthrough', function () {
const preferences = pluginPassthrough.getPreferences('android');
console.log(preferences);
expect(preferences.passthroughpref.anattrib).toBe('value');
});
});
<preference name="passthroughpref" anattrib="value" />
<!-- <preference name="passthroughpref2" anattrib="value2" /> -->
{ name: 'passthroughpref', anattrib: 'value', PASSTHROUGHPREF: null }
<preference name="passthroughpref" anattrib="value" />
<preference name="passthroughpref2" anattrib="value2" />
{
name: 'passthroughpref2',
anattrib: 'value2',
PASSTHROUGHPREF: null,
PASSTHROUGHPREF2: null
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]