mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-31 18:52:53 +08:00
added documentation for manual tests, moved background color test below overlay test
This commit is contained in:
parent
83697e52ef
commit
0d52e1bf10
@ -64,11 +64,17 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
|||||||
contentEl.innerHTML = '<div id="info"></div>' +
|
contentEl.innerHTML = '<div id="info"></div>' +
|
||||||
'Also: tapping bar on iOS should emit a log.' +
|
'Also: tapping bar on iOS should emit a log.' +
|
||||||
'<div id="action-show"></div>' +
|
'<div id="action-show"></div>' +
|
||||||
'<div id="action-hide"></div>' +
|
'Expected result: Status bar will be visible' +
|
||||||
'<div id="action-color1"></div>' +
|
'</p> <div id="action-hide"></div>' +
|
||||||
'<div id="action-color2"></div>' +
|
'Expected result: Status bar will be hidden' +
|
||||||
'<div id="action-color3"></div>' +
|
'</p> <div id="action-color2"></div>' +
|
||||||
'<div id="action-overlays"></div>';
|
'Expected result: Status bar text will be a light (white) color' +
|
||||||
|
'</p> <div id="action-color3"></div>' +
|
||||||
|
'Expected result: Status bar text will be a dark (black) color' +
|
||||||
|
'</p> <div id="action-overlays"></div>' +
|
||||||
|
'Expected result:<br>Overlay true = status bar will lay on top of web view content<br>Overlay false = status bar will be separate from web view and will not cover content' +
|
||||||
|
'</p> <div id="action-color1"></div>' +
|
||||||
|
'Expected result: If overlay false, background color for status bar will be red';
|
||||||
|
|
||||||
log('StatusBar.isVisible=' + StatusBar.isVisible);
|
log('StatusBar.isVisible=' + StatusBar.isVisible);
|
||||||
window.addEventListener('statusTap', function () {
|
window.addEventListener('statusTap', function () {
|
||||||
@ -83,7 +89,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
|||||||
doHide();
|
doHide();
|
||||||
}, 'action-hide');
|
}, 'action-hide');
|
||||||
|
|
||||||
createActionButton("Style=red", function () {
|
createActionButton("Style=red (background)", function () {
|
||||||
doColor1();
|
doColor1();
|
||||||
}, 'action-color1');
|
}, 'action-color1');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user