mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2026-04-27 00:00:06 +08:00
refactor!: remove deprecated methods (#229)
This commit is contained in:
@@ -44,18 +44,12 @@ exports.defineAutoTests = function () {
|
||||
});
|
||||
|
||||
it('statusbar.spec.4 should have set style methods', function () {
|
||||
expect(window.StatusBar.styleBlackTranslucent).toBeDefined();
|
||||
expect(typeof window.StatusBar.styleBlackTranslucent).toBe('function');
|
||||
|
||||
expect(window.StatusBar.styleDefault).toBeDefined();
|
||||
expect(typeof window.StatusBar.styleDefault).toBe('function');
|
||||
|
||||
expect(window.StatusBar.styleLightContent).toBeDefined();
|
||||
expect(typeof window.StatusBar.styleLightContent).toBe('function');
|
||||
|
||||
expect(window.StatusBar.styleBlackOpaque).toBeDefined();
|
||||
expect(typeof window.StatusBar.styleBlackOpaque).toBe('function');
|
||||
|
||||
expect(window.StatusBar.overlaysWebView).toBeDefined();
|
||||
expect(typeof window.StatusBar.overlaysWebView).toBe('function');
|
||||
});
|
||||
@@ -85,11 +79,6 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
||||
StatusBar.backgroundColorByName('red');
|
||||
}
|
||||
|
||||
function doColor2 () {
|
||||
log('set style=translucent black');
|
||||
StatusBar.styleBlackTranslucent();
|
||||
}
|
||||
|
||||
function doColor3 () {
|
||||
log('set style=default');
|
||||
StatusBar.styleDefault();
|
||||
@@ -153,14 +142,6 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
||||
'action-color1'
|
||||
);
|
||||
|
||||
createActionButton(
|
||||
'Style=translucent black',
|
||||
function () {
|
||||
doColor2();
|
||||
},
|
||||
'action-color2'
|
||||
);
|
||||
|
||||
createActionButton(
|
||||
'Style=default',
|
||||
function () {
|
||||
|
||||
Reference in New Issue
Block a user